mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
deal with mongoose strict query
This commit is contained in:
@@ -7,6 +7,8 @@ import { uniqueFilter } from '../helpers/array'
|
||||
|
||||
export const MONGO_URI = process.env.MONGO_URI
|
||||
|
||||
mongoose.set('strictQuery', false);
|
||||
|
||||
mongoose.connect(process.env.MONGO_URI, {
|
||||
serverSelectionTimeoutMS: 3000,
|
||||
})
|
||||
@@ -126,4 +128,4 @@ export async function getMilageMax(): Promise<number> {
|
||||
.exec()
|
||||
|
||||
return billMaxMilageEnd?.milageEnd || 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user