From fd73402e48c3e692376d28f4d39ee43c8d1d5af4 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Sun, 29 Dec 2019 13:09:17 +0100 Subject: [PATCH] Fixed bug --- libs/Db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Db.js b/libs/Db.js index f97ebbf..e117cab 100644 --- a/libs/Db.js +++ b/libs/Db.js @@ -16,7 +16,7 @@ class Db { createdAt: 'desc' }) .limit(1) - .exec(function (err, last) { + .exec((err, last) => { if (err || last.length === 0 || (last[0] !== undefined &&