Update types for MongoDB driver
This commit is contained in:
1 parent
2411db6b36
commit
495e7b0264
3 files changed
+5
-5
No files matched your search
@@ -640,7 +640,7 @@ export async function getDueTasks(
|
||||
deviceId: string,
|
||||
timestamp: number
|
||||
): Promise<[Task[], number]> {
|
||||
const cur = tasksCollection.find({ device: deviceId }).sort(["timestamp"]);
|
||||
const cur = tasksCollection.find({ device: deviceId }).sort({ timestamp: 1 });
|
||||
const tasks = [] as Task[];
|
||||
|
||||
for await (const task of cur) {
|
||||
|
||||
Generated
+3
-3
@@ -727,9 +727,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@types/mongodb": {
|
||||
"version": "3.5.25",
|
||||
"resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.5.25.tgz",
|
||||
"integrity": "sha512-2H/Owt+pHCl9YmBOYnXc3VdnxejJEjVdH+QCWL5ZAfPehEn3evygKBX3/vKRv7aTwfNbUd0E5vjJdQklH/9a6w==",
|
||||
"version": "3.5.26",
|
||||
"resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.5.26.tgz",
|
||||
"integrity": "sha512-p0X2VJgIBNHfNBdZdzzG8eQ/3bf6mQoXDT0UhVyVEdSzXEa1+2pFcwGvEZp72sjztyBwfRKlgrXMjCVavLcuGg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/bson": "*",
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@
|
||||
"@types/koa-router": "^7.0.42",
|
||||
"@types/koa-static": "^4.0.1",
|
||||
"@types/mithril": "^2.0.0",
|
||||
"@types/mongodb": "^3.5.25",
|
||||
"@types/mongodb": "^3.5.26",
|
||||
"@types/parsimmon": "^1.10.0",
|
||||
"@types/seedrandom": "^2.4.28",
|
||||
"@types/svgo": "^1.2.1",
|
||||
|
||||
Reference in new issue
Block a user