We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ceeb93 commit 56a2f7cCopy full SHA for 56a2f7c
server/cron/nodeLocations.js
@@ -103,7 +103,7 @@ const doNodeLocations = async () => {
103
throw new Error("Mongo unavailable for doNodeLocations");
104
}
105
106
- await database.collection(NODE_LOCATIONS).drop();
+ await database.collection(NODE_LOCATIONS).deleteMany({});
107
await database.collection(NODE_LOCATIONS).insertMany(results);
108
109
nodeCache.set(NODE_LOCATIONS, results);
0 commit comments