SecureSign hash error handler

merge-requests/1/merge
Bsian 2019-11-17 01:46:55 +00:00
parent 3ec1e03e27
commit 31b9c69728
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 18 additions and 14 deletions

View File

@ -4,6 +4,7 @@ import { Client } from '..';
export default function checkSS(client: Client) {
setInterval(async () => {
try {
const accounts = await client.db.Account.find();
const hashes = accounts.filter((h) => h.hash);
for (const { hash, userID } of hashes) {
@ -21,5 +22,8 @@ export default function checkSS(client: Client) {
}
}
}
} catch (error) {
client.util.handleError(error);
}
}, 60000);
}