logfix
This commit is contained in:
@@ -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