mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-02-26 05:34:59 +00:00
Merge pull request #3780 from Dokploy/3673-dokploy-fails-with-bad-request-after-webui-triggered-update-and-does-not-recover-automatically
fix: add error handling to dokploy restart notifications
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
||||
} from "./utils";
|
||||
|
||||
export const sendDokployRestartNotifications = async () => {
|
||||
try {
|
||||
const date = new Date();
|
||||
const unixDate = ~~(Number(date) / 1000);
|
||||
const notificationList = await db.query.notifications.findMany({
|
||||
@@ -268,4 +269,7 @@ export const sendDokployRestartNotifications = async () => {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("[Dokploy] Restart notifications failed:", error);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user