refactor(notifications): minimize send notifications in more reusable fn

This commit is contained in:
Mauricio Siu
2024-07-19 01:41:01 -06:00
parent 2d4eaeb8b5
commit e0bde5cec9
3 changed files with 132 additions and 510 deletions

View File

@@ -57,9 +57,8 @@ void app.prepare().then(async () => {
// Timeout to wait for the database to be ready
await new Promise((resolve) => setTimeout(resolve, 7000));
await migration();
await sendDokployRestartNotifications();
}
await sendDokployRestartNotifications();
server.listen(PORT);
console.log("Server Started:", PORT);
deploymentWorker.run();