gateway
This commit is contained in:
@@ -15,7 +15,7 @@ export const LoginToken = new Schema<ILoginToken>({
|
||||
ip: { type: String, required: true },
|
||||
regDate: { type: Date, required: true },
|
||||
validUntil: { type: Date, required: true },
|
||||
}, { autoIndex: false })
|
||||
}, { autoIndex: false, autoCreate: false, })
|
||||
.index({ userID: 1, token: 1 })
|
||||
.index({ validUntil: 1 }, { expireAfterSeconds: 1 })
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user