This commit is contained in:
archer
2023-07-13 15:17:01 +08:00
parent b4d46ff34d
commit 726de0396b
6 changed files with 13 additions and 16 deletions

View File

@@ -45,7 +45,7 @@ const BillSchema = new Schema({
try {
BillSchema.index({ userId: 1 });
// BillSchema.index({ time: -1 });
// BillSchema.index({ time: 1 }, { expireAfterSeconds: 90 * 24 * 60 });
BillSchema.index({ time: 1 }, { expireAfterSeconds: 90 * 24 * 60 });
} catch (error) {
console.log(error);
}