mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-26 04:32:50 +00:00
bugfix: correct time to real 7 days (#754)
This commit is contained in:
parent
5e2adb22f0
commit
91b7d81c1a
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue