forked from engineering/cloudservices
handover handling of storage daemon to cron
parent
43ac9537c5
commit
6e6ab615f1
|
@ -6,6 +6,7 @@ import { Client } from '../class';
|
||||||
let interval: NodeJS.Timeout;
|
let interval: NodeJS.Timeout;
|
||||||
|
|
||||||
export default async function storage(client: Client) {
|
export default async function storage(client: Client) {
|
||||||
|
return;
|
||||||
async function determineInterval(client0: Client) {
|
async function determineInterval(client0: Client) {
|
||||||
const accounts = await client0.db.Account.countDocuments();
|
const accounts = await client0.db.Account.countDocuments();
|
||||||
return (accounts * 2) * 60000;
|
return (accounts * 2) * 60000;
|
||||||
|
|
Loading…
Reference in New Issue