fix replace value await

This commit is contained in:
Simon Larsen 2023-08-10 19:40:52 +01:00
parent e370dd118d
commit 2a4b8b39fa
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 2 additions and 8 deletions

View File

@ -1,6 +1,5 @@
// This script merges config.env.tpl to config.env
import logger from 'CommonServer/Utils/Logger';
import fs from 'fs';
const init: Function = (): void => {
@ -40,6 +39,4 @@ const init: Function = (): void => {
fs.writeFileSync('./config.env', linesInEnv.join('\n'));
};
init().catch((err: Error) => {
logger.error(err);
});
await init();

View File

@ -1,6 +1,5 @@
// This script merges config.env.tpl to config.env
import logger from 'CommonServer/Utils/Logger';
import fs from 'fs';
const init: Function = (): void => {
@ -51,6 +50,4 @@ const init: Function = (): void => {
fs.writeFileSync('./config.env', linesToRender.join('\n'));
};
init().catch((err: Error) => {
logger.error(err);
});
await init();