correct check ttl
This commit is contained in:
1 parent
229027830d
commit
ce97e201c9
1 file changed
+1
-5
@@ -296,11 +296,6 @@ const CheckSchema = new Schema<ICheck>(
|
|||||||
errorMessage: { type: String, trim: true },
|
errorMessage: { type: String, trim: true },
|
||||||
ackAt: { type: Date },
|
ackAt: { type: Date },
|
||||||
ackBy: { type: Schema.Types.ObjectId, ref: "User" },
|
ackBy: { type: Schema.Types.ObjectId, ref: "User" },
|
||||||
expiry: {
|
|
||||||
type: Date,
|
|
||||||
default: Date.now,
|
|
||||||
expires: 60 * 60 * 24 * 30,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
timestamps: true,
|
timestamps: true,
|
||||||
@@ -309,6 +304,7 @@ const CheckSchema = new Schema<ICheck>(
|
|||||||
metaField: "metadata",
|
metaField: "metadata",
|
||||||
granularity: "seconds",
|
granularity: "seconds",
|
||||||
},
|
},
|
||||||
|
expireAfterSeconds: 60 * 60 * 24 * 30 * 3, // 3 months
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user