bugfix: correct time to real 7 days (#754)

This commit is contained in:
William Zhang
2024-01-19 21:36:38 +08:00
committed by GitHub
parent 5e2adb22f0
commit 91b7d81c1a

View File

@@ -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);
}