mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
bugfix: correct time to real 7 days (#754)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user