mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat(notifications): fix gotify style
This commit is contained in:
@@ -116,16 +116,16 @@ export const sendBuildErrorNotifications = async ({
|
||||
|
||||
if (gotify) {
|
||||
const decorate = (decoration: string, text: string) =>
|
||||
`${gotify.decoration ? decoration : ""} ${text}`.trim();
|
||||
`${gotify.decoration ? decoration : ""} ${text}\n`;
|
||||
await sendGotifyNotification(
|
||||
gotify,
|
||||
decorate("⚠️", "Build Failed"),
|
||||
`${decorate("🛠️", `Project: ${projectName}`)}
|
||||
${decorate("⚙️", `Application: ${applicationName}`)}
|
||||
${decorate("❔", `Type: ${applicationType}`)}
|
||||
${decorate("🕒", `Date: ${date.toLocaleString()}`)}
|
||||
${decorate("⚠️", `Error:\n${errorMessage}`)}
|
||||
${decorate("🔗", `Build details:\n${buildLink}`)}`,
|
||||
`${decorate("🛠️", `Project: ${projectName}`)}` +
|
||||
`${decorate("⚙️", `Application: ${applicationName}`)}` +
|
||||
`${decorate("❔", `Type: ${applicationType}`)}` +
|
||||
`${decorate("🕒", `Date: ${date.toLocaleString()}`)}` +
|
||||
`${decorate("⚠️", `Error:\n${errorMessage}`)}` +
|
||||
`${decorate("🔗", `Build details:\n${buildLink}`)}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user