From 31191b01c676e7e9821d0f3067be0515dcc7d2f3 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Wed, 18 Dec 2019 23:47:08 -0500 Subject: [PATCH] make storage.ts run go --- src/intervals/storage.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/intervals/storage.ts b/src/intervals/storage.ts index b499888..2c9cdd7 100644 --- a/src/intervals/storage.ts +++ b/src/intervals/storage.ts @@ -1,9 +1,9 @@ /* eslint-disable no-await-in-loop */ -import fs from 'fs-extra'; +// import fs from 'fs-extra'; import { Client } from '..'; export default async function storage(client: Client) { - const main = async () => { + /* const main = async () => { const accounts = await client.db.Account.find(); for (const account of accounts) { setTimeout(async () => { @@ -23,5 +23,6 @@ export default async function storage(client: Client) { await main(); setInterval(async () => { await main(); - }, 900000); + }, 900000); */ + (await import('child_process')).execFile('./storage'); }