From 8cf1157442a77a310345de58cfe4c0b46a2ec7cf Mon Sep 17 00:00:00 2001 From: Bsian Date: Sun, 17 Nov 2019 01:53:38 +0000 Subject: [PATCH] Fix? --- src/functions/checkSS.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/checkSS.ts b/src/functions/checkSS.ts index 751b95c..45868b6 100644 --- a/src/functions/checkSS.ts +++ b/src/functions/checkSS.ts @@ -17,7 +17,7 @@ export default function checkSS(client: Client) { } catch (error) { const { status } = error.response; if (status === 400 || status === 401 || status === 403 || status === 404) { - client.db.Account.updateOne({ hash }, { $set: { hash: null } }); + await client.db.Account.updateOne({ hash }, { $set: { hash: null } }); client.getDMChannel(userID).then((channel) => channel.createMessage('Your SecureSign password has been reset - please reinitialize your SecureSign account')).catch(); } }