Merge branch 'canary' into gotify-notifications

This commit is contained in:
Mauricio Siu
2025-01-18 17:23:35 -06:00
committed by GitHub
14 changed files with 134 additions and 50 deletions

View File

@@ -10,6 +10,7 @@ import {
sendSlackNotification,
sendTelegramNotification,
} from "./utils";
import { format } from "date-fns";
export const sendDokployRestartNotifications = async () => {
const date = new Date();
@@ -79,10 +80,7 @@ export const sendDokployRestartNotifications = async () => {
if (telegram) {
await sendTelegramNotification(
telegram,
`
<b>✅ Dokploy Server Restarted</b>
<b>Time:</b> ${date.toLocaleString()}
`,
`<b>✅ Dokploy Server Restarted</b>\n\n<b>Date:</b> ${format(date, "PP")}\n<b>Time:</b> ${format(date, "pp")}`
);
}