adding catch
This commit is contained in:
parent
a1ae8c98d1
commit
43bb990df5
2 changed files with 6 additions and 2 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -38,5 +38,7 @@ class App {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const app = new App();
|
const app = new App();
|
||||||
app.startCronJob();
|
app.startCronJob().catch((error) => {
|
||||||
|
console.error("Error in app:", error.message);
|
||||||
|
});
|
||||||
// app.startWebServer();
|
// app.startWebServer();
|
||||||
|
|
|
@ -48,5 +48,7 @@ class App {
|
||||||
|
|
||||||
const app = new App();
|
const app = new App();
|
||||||
|
|
||||||
app.startCronJob();
|
app.startCronJob().catch((error) => {
|
||||||
|
console.error("Error in app:", error.message);
|
||||||
|
});
|
||||||
// app.startWebServer();
|
// app.startWebServer();
|
||||||
|
|
Loading…
Reference in a new issue