Update types for MongoDB driver

This commit is contained in:
Zaid Abdulla committed 2020-09-01 01:58:06 -07:00
1 parent 2411db6b36
commit 495e7b0264
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -640,7 +640,7 @@ export async function getDueTasks(
deviceId: string, deviceId: string,
timestamp: number timestamp: number
): Promise<[Task[], 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[]; const tasks = [] as Task[];
for await (const task of cur) { for await (const task of cur) {
+3 -3
View File
@@ -727,9 +727,9 @@
"dev": true "dev": true
}, },
"@types/mongodb": { "@types/mongodb": {
"version": "3.5.25", "version": "3.5.26",
"resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.5.25.tgz", "resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.5.26.tgz",
"integrity": "sha512-2H/Owt+pHCl9YmBOYnXc3VdnxejJEjVdH+QCWL5ZAfPehEn3evygKBX3/vKRv7aTwfNbUd0E5vjJdQklH/9a6w==", "integrity": "sha512-p0X2VJgIBNHfNBdZdzzG8eQ/3bf6mQoXDT0UhVyVEdSzXEa1+2pFcwGvEZp72sjztyBwfRKlgrXMjCVavLcuGg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/bson": "*", "@types/bson": "*",
+1 -1
View File
@@ -47,7 +47,7 @@
"@types/koa-router": "^7.0.42", "@types/koa-router": "^7.0.42",
"@types/koa-static": "^4.0.1", "@types/koa-static": "^4.0.1",
"@types/mithril": "^2.0.0", "@types/mithril": "^2.0.0",
"@types/mongodb": "^3.5.25", "@types/mongodb": "^3.5.26",
"@types/parsimmon": "^1.10.0", "@types/parsimmon": "^1.10.0",
"@types/seedrandom": "^2.4.28", "@types/seedrandom": "^2.4.28",
"@types/svgo": "^1.2.1", "@types/svgo": "^1.2.1",