Skip to content

Commit

Permalink
Merge pull request #15 from availproject/fix/exec-logic
Browse files Browse the repository at this point in the history
fix: Start execution flow logic
  • Loading branch information
moraesjeremias authored Jul 23, 2024
2 parents 48c9f53 + 362103f commit 7befed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ async function startCron() {
async function start() {
bridgeApi = new BridgeApi(process.env.BRIDGE_API as string);

if (process.env.START_CRON) {
if (process.env.START_CRON == 'true') {
await startCron();
}

if (process.env.START_API) {
if (process.env.START_API == 'true') {
await startApi();
}
}
Expand Down

0 comments on commit 7befed3

Please sign in to comment.