randydev commited on
Commit
5a9990a
·
verified ·
1 Parent(s): 38d3304

Update models.js

Browse files
Files changed (1) hide show
  1. models.js +1 -1
models.js CHANGED
@@ -14,7 +14,7 @@ const jobSchema = new mongoose.Schema({
14
  job_id: { type: String, unique: true },
15
  status: { type: String, enum: ["pending", "processing", "completed", "failed"], default: "pending" },
16
  story_bytes: { type: String, default: null },
17
- createdAt: { type: Date, default: Date.now }
18
  });
19
 
20
  export const Job = mongoose.model("Job", jobSchema);
 
14
  job_id: { type: String, unique: true },
15
  status: { type: String, enum: ["pending", "processing", "completed", "failed"], default: "pending" },
16
  story_bytes: { type: String, default: null },
17
+ createdAt: { type: Date, default: Date.now, expires: 300 }
18
  });
19
 
20
  export const Job = mongoose.model("Job", jobSchema);