correct check ttl

This commit is contained in:
Alex Holliday committed 2025-11-27 23:05:58 +00:00
1 parent 229027830d
commit ce97e201c9
1 file changed
+1 -5
+1 -5
View File
@@ -296,11 +296,6 @@ const CheckSchema = new Schema<ICheck>(
errorMessage: { type: String, trim: true },
ackAt: { type: Date },
ackBy: { type: Schema.Types.ObjectId, ref: "User" },
expiry: {
type: Date,
default: Date.now,
expires: 60 * 60 * 24 * 30,
},
},
{
timestamps: true,
@@ -309,6 +304,7 @@ const CheckSchema = new Schema<ICheck>(
metaField: "metadata",
granularity: "seconds",
},
expireAfterSeconds: 60 * 60 * 24 * 30 * 3, // 3 months
}
);