Skip to content

Commit

Permalink
Merge pull request #82 from javieraviles/feature/listener_callback_sh…
Browse files Browse the repository at this point in the history
…ould_be_used

listener callback should be used
  • Loading branch information
javieraviles authored May 25, 2021
2 parents 958e74e + 8b31135 commit 0f788a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ createConnection(connectionOptions).then(async () => {
// Register cron job to do any action needed
cron.start();

app.listen(config.port);

console.log(`Server running on port ${config.port}`);
app.listen(config.port, () => {
console.log(`Server running on port ${config.port}`);
});

}).catch((error: string) => console.log("TypeORM connection error: ", error));

0 comments on commit 0f788a7

Please sign in to comment.