1
0
Fork 0
refactor/models
Bsian 2019-11-17 01:53:38 +00:00
parent a0f990105d
commit 8cf1157442
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}