Skip to content

Commit

Permalink
bugfix: correct time to real 7 days (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
mclamee committed Jan 19, 2024
1 parent 5e2adb2 commit 91b7d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/service/core/dataset/training/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 91b7d81

Please sign in to comment.