Skip to content

Commit

Permalink
Merge pull request #161 from 0xProject/andres/fix-pg-connection-silen…
Browse files Browse the repository at this point in the history
…t-error

Throw exception when DB connection fails
  • Loading branch information
AndresElizondo authored Nov 6, 2024
2 parents 58bceb0 + c851c6a commit 02fb8ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ createConnection(ormConfig as ConnectionOptions)
}
}
})
.catch((error) => logger.error(error));
.catch((error) => {
logger.fatal(error);
process.exit();
});

async function schedule(connection: Connection | null, producer: Producer | null, func: any, funcName: string) {
const start = new Date().getTime();
Expand Down

0 comments on commit 02fb8ff

Please sign in to comment.