Parent Directory
|
Revision Log
refactor: use new queue handler
1 | import mongoose, { Document } from "mongoose" |
2 | |
3 | export interface IQueuedJob extends Document { |
4 | uuid: string; |
5 | data?: { [key: string | number]: any }; |
6 | runOn: Date; |
7 | createdAt: Date; |
8 | guild?: string; |
9 | } |
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 | type: Date, |
20 | required: true |
21 | }, |
22 | createdAt: { |
23 | type: Date, |
24 | required: true |
25 | }, |
26 | className: { |
27 | type: String, |
28 | required: true |
29 | }, |
30 | guild: String |
31 | }); |
32 | |
33 | export default mongoose.model('QueuedJob', schema); |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |