1
0
Fork 0

make storage.ts run go

refactor/models
Matthew 2019-12-18 23:47:08 -05:00
parent 963993d520
commit 31191b01c6
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 4 additions and 3 deletions

View File

@ -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');
}