From ba98070216b7bd519784e9dbe1f1c8bd9adfdc92 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Tue, 1 Feb 2022 19:31:46 -0700 Subject: [PATCH] cachelooop bugs --- util/lxp/cacheloop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/lxp/cacheloop.js b/util/lxp/cacheloop.js index a935651..aeaae65 100644 --- a/util/lxp/cacheloop.js +++ b/util/lxp/cacheloop.js @@ -12,7 +12,7 @@ module.exports = async (client) => { if (isNaN(client.misc.cache.monners[user])) {return;} if (!m) {m = new Monners({uid: user});} m.currency = client.misc.cache.monners[user]; - m.save(); + m.save().catch(() => {}); }); xp.xp[user] = [client.misc.cache.lxp.xp[gxp][user].xp, client.misc.cache.lxp.xp[gxp][user].level]; xp.markModified(`xp.${user}`); @@ -22,7 +22,7 @@ module.exports = async (client) => { if (!Object.keys(client.misc.cache.lxp.xp[gxp]).length) {delete client.misc.cache.lxp.xp[gxp];} } }); - xp.save(); + xp.save().catch(() => {}); }); }); }; \ No newline at end of file