adding catch

This commit is contained in:
Kfir Dayan 2023-07-26 14:31:24 +03:00
parent a1ae8c98d1
commit 43bb990df5
2 changed files with 6 additions and 2 deletions

4
dist/index.js vendored
View file

@ -38,5 +38,7 @@ class App {
}
}
const app = new App();
app.startCronJob();
app.startCronJob().catch((error) => {
console.error("Error in app:", error.message);
});
// app.startWebServer();

View file

@ -48,5 +48,7 @@ class App {
const app = new App();
app.startCronJob();
app.startCronJob().catch((error) => {
console.error("Error in app:", error.message);
});
// app.startWebServer();