/[sudobot]/trunk/src/models/QueuedJob.ts
ViewVC logotype

Diff of /trunk/src/models/QueuedJob.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 421 by rakin, Mon Jul 29 17:30:09 2024 UTC revision 430 by rakin, Mon Jul 29 17:30:12 2024 UTC
# Line 3  import mongoose, { Document } from "mong Line 3  import mongoose, { Document } from "mong
3  export interface IQueuedJob extends Document {  export interface IQueuedJob extends Document {
4      uuid: string;      uuid: string;
5      data?: { [key: string | number]: any };      data?: { [key: string | number]: any };
6      runOn: number;      runOn: Date;
7      createdAt: Date;      createdAt: Date;
8        guild?: string;
9  }  }
10    
11  const schema = new mongoose.Schema({  const schema = new mongoose.Schema({
# Line 15  const schema = new mongoose.Schema({ Line 16  const schema = new mongoose.Schema({
16      },      },
17      data: mongoose.Schema.Types.Mixed,      data: mongoose.Schema.Types.Mixed,
18      runOn: {      runOn: {
19          type: Number,          type: Date,
20          required: true          required: true
21      },      },
22      createdAt: {      createdAt: {
# Line 25  const schema = new mongoose.Schema({ Line 26  const schema = new mongoose.Schema({
26      className: {      className: {
27          type: String,          type: String,
28          required: true          required: true
29      }      },
30        guild: String
31  });  });
32    
33  export default mongoose.model('QueuedJob', schema);  export default mongoose.model('QueuedJob', schema);

Legend:
Removed from v.421  
changed lines
  Added in v.430

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26