1
0
Fork 0

handover handling of storage daemon to cron

refactor/models
Matthew 2021-01-23 18:02:54 -05:00
parent 43ac9537c5
commit 6e6ab615f1
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import { Client } from '../class';
let interval: NodeJS.Timeout;
export default async function storage(client: Client) {
return;
async function determineInterval(client0: Client) {
const accounts = await client0.db.Account.countDocuments();
return (accounts * 2) * 60000;