Commit 91b7d81c by William Zhang Committed by GitHub

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

parent 5e2adb22
...@@ -107,7 +107,7 @@ try { ...@@ -107,7 +107,7 @@ try {
// get training data and sort // get training data and sort
TrainingDataSchema.index({ weight: -1 }); TrainingDataSchema.index({ weight: -1 });
TrainingDataSchema.index({ lockTime: 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) { } catch (error) {
console.log(error); console.log(error);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment