You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
496 B
20 lines
496 B
const path = require('path'); |
|
const { sleep } = require('./util'); |
|
const { getAllWorkflows } = require('./workflow'); |
|
|
|
require(path.join(process.cwd(),"..","server","dist","database.js")); |
|
|
|
(async function(){ |
|
await sleep(5e3); |
|
console.time("WorkflowTester") |
|
|
|
console.log("initilizing begin.."); |
|
|
|
const workflows = await getAllWorkflows(); |
|
if(workflows.length==0) throw "There is not any workflow"; |
|
|
|
|
|
|
|
console.timeEnd("WorkflowTester") |
|
console.log("DONE"); |
|
})() |