logfix
This commit is contained in:
1 parent
e6848435d4
commit
1037f51f24
1 file changed
+1
-1
@@ -37,7 +37,7 @@ async function compareLatestSavedPatch(client: MongoClient, newPatch : string, n
|
||||
const patches = database.collection("patches")
|
||||
const latestPatch = await patches.find().limit(1).sort({date:-1}).next()
|
||||
|
||||
console.log("Latest patch in database is: " + latestPatch)
|
||||
console.log("Latest patch in database is: " + latestPatch.patch)
|
||||
|
||||
if(latestPatch.patch != newPatch) {
|
||||
await patches.insertOne({patch:newPatch, date:newDate})
|
||||
|
||||
Reference in new issue
Block a user