diff --git a/index.js b/index.js index fdefba3..ee1f33e 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,6 @@ const { sleep } = require('./util'); require(path.join(process.cwd(),"..","server","dist","database.js")); async function main(){ - await mainStarterFunction(); await sleep(5e3); diff --git a/util.js b/util.js index 5828dc7..e40cf42 100644 --- a/util.js +++ b/util.js @@ -1,6 +1,6 @@ const sleep = (ms)=>{ return new Promise(resolve=>{ - console.log(`${ms} should wait`); + console.log(`${(ms/1000).toFixed(2)}s SHOULD WAIT`); setTimeout(resolve,ms); }) }