mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-02 02:02:18 +00:00
feat(notifications): fix gotify style
This commit is contained in:
@@ -83,12 +83,12 @@ export const sendDockerCleanupNotifications = async (
|
||||
|
||||
if (gotify) {
|
||||
const decorate = (decoration: string, text: string) =>
|
||||
`${gotify.decoration ? decoration : ""} ${text}`.trim();
|
||||
`${gotify.decoration ? decoration : ""} ${text}\n`;
|
||||
await sendGotifyNotification(
|
||||
gotify,
|
||||
decorate("✅", "Docker Cleanup"),
|
||||
`${decorate("🕒", `Date: ${date.toLocaleString()}`)}
|
||||
${decorate("📜", `Message:\n${message}`)}`,
|
||||
`${decorate("🕒", `Date: ${date.toLocaleString()}`)}` +
|
||||
`${decorate("📜", `Message:\n${message}`)}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user