Parent Directory
|
Revision Log
refactor: use new queue handler
1 | rakin | 421 | import mongoose, { Document } from "mongoose" |
2 | |||
3 | export interface IQueuedJob extends Document { | ||
4 | uuid: string; | ||
5 | data?: { [key: string | number]: any }; | ||
6 | rakin | 423 | runOn: Date; |
7 | rakin | 421 | createdAt: Date; |
8 | rakin | 430 | guild?: string; |
9 | rakin | 421 | } |
10 | |||
11 | const schema = new mongoose.Schema({ | ||
12 | uuid: { | ||
13 | type: String, | ||
14 | required: true, | ||
15 | unique: true | ||
16 | }, | ||
17 | data: mongoose.Schema.Types.Mixed, | ||
18 | runOn: { | ||
19 | rakin | 423 | type: Date, |
20 | rakin | 421 | required: true |
21 | }, | ||
22 | createdAt: { | ||
23 | type: Date, | ||
24 | required: true | ||
25 | }, | ||
26 | className: { | ||
27 | type: String, | ||
28 | required: true | ||
29 | rakin | 430 | }, |
30 | guild: String | ||
31 | rakin | 421 | }); |
32 | |||
33 | export default mongoose.model('QueuedJob', schema); |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |