export/import fix

This commit is contained in:
Jan Prochazka 2020-11-07 10:30:12 +01:00
parent d234226750
commit 19dadcd4ae

View File

@ -11,7 +11,7 @@ const scriptTemplate = (script) => `
const dbgateApi = require(process.env.DBGATE_API || "@dbgate/api");
require=null;
async function run() {
const reader = ${script}
${script}
}
dbgateApi.runScript(run);
`;