forked from engineering/cloudservices
SecureSign hash error handler
parent
3ec1e03e27
commit
31b9c69728
|
@ -4,6 +4,7 @@ import { Client } from '..';
|
||||||
|
|
||||||
export default function checkSS(client: Client) {
|
export default function checkSS(client: Client) {
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
|
try {
|
||||||
const accounts = await client.db.Account.find();
|
const accounts = await client.db.Account.find();
|
||||||
const hashes = accounts.filter((h) => h.hash);
|
const hashes = accounts.filter((h) => h.hash);
|
||||||
for (const { hash, userID } of hashes) {
|
for (const { hash, userID } of hashes) {
|
||||||
|
@ -21,5 +22,8 @@ export default function checkSS(client: Client) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
client.util.handleError(error);
|
||||||
|
}
|
||||||
}, 60000);
|
}, 60000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue