From 91b7d81c1ad4c49914725bbf6ef2ebeaf73614cd Mon Sep 17 00:00:00 2001 From: William Zhang Date: Fri, 19 Jan 2024 21:36:38 +0800 Subject: [PATCH] bugfix: correct time to real 7 days (#754) --- packages/service/core/dataset/training/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/service/core/dataset/training/schema.ts b/packages/service/core/dataset/training/schema.ts index 410103571..0bbb9a7ca 100644 --- a/packages/service/core/dataset/training/schema.ts +++ b/packages/service/core/dataset/training/schema.ts @@ -107,7 +107,7 @@ try { // get training data and sort TrainingDataSchema.index({ weight: -1 }); TrainingDataSchema.index({ lockTime: 1 }); - TrainingDataSchema.index({ expireAt: 1 }, { expireAfterSeconds: 7 * 24 * 60 }); + TrainingDataSchema.index({ expireAt: 1 }, { expireAfterSeconds: 7 * 24 * 60 * 60 }); // 7 days } catch (error) { console.log(error); }