diff --git a/apps/dokploy/components/dashboard/settings/notifications/update-notification.tsx b/apps/dokploy/components/dashboard/settings/notifications/update-notification.tsx index 3d8b61e6..10098710 100644 --- a/apps/dokploy/components/dashboard/settings/notifications/update-notification.tsx +++ b/apps/dokploy/components/dashboard/settings/notifications/update-notification.tsx @@ -618,10 +618,7 @@ export const UpdateNotification = ({ notificationId }: Props) => { App Token - + diff --git a/apps/dokploy/server/api/routers/notification.ts b/apps/dokploy/server/api/routers/notification.ts index 77f0287a..2eafc66d 100644 --- a/apps/dokploy/server/api/routers/notification.ts +++ b/apps/dokploy/server/api/routers/notification.ts @@ -353,7 +353,7 @@ export const notificationRouter = createTRPCRouter({ await sendGotifyNotification( input, "Test Notification", - "Hi, From Dokploy 👋" + "Hi, From Dokploy 👋", ); return true; } catch (error) { diff --git a/packages/server/src/db/schema/notification.ts b/packages/server/src/db/schema/notification.ts index bbbe18d2..12c7698e 100644 --- a/packages/server/src/db/schema/notification.ts +++ b/packages/server/src/db/schema/notification.ts @@ -266,13 +266,15 @@ export const apiUpdateGotify = apiCreateGotify.partial().extend({ adminId: z.string().optional(), }); -export const apiTestGotifyConnection = apiCreateGotify.pick({ - serverUrl: true, - appToken: true, - priority: true, -}).extend({ - decoration: z.boolean().optional(), -}); +export const apiTestGotifyConnection = apiCreateGotify + .pick({ + serverUrl: true, + appToken: true, + priority: true, + }) + .extend({ + decoration: z.boolean().optional(), + }); export const apiFindOneNotification = notificationsSchema .pick({ diff --git a/packages/server/src/utils/notifications/utils.ts b/packages/server/src/utils/notifications/utils.ts index 09fdd7bc..c4b46f41 100644 --- a/packages/server/src/utils/notifications/utils.ts +++ b/packages/server/src/utils/notifications/utils.ts @@ -1,9 +1,9 @@ import type { discord, email, + gotify, slack, telegram, - gotify, } from "@dokploy/server/db/schema"; import nodemailer from "nodemailer"; @@ -106,13 +106,15 @@ export const sendGotifyNotification = async ( priority: connection.priority, extras: { "client::display": { - "contentType": "text/plain" - } - } + contentType: "text/plain", + }, + }, }), }); if (!response.ok) { - throw new Error(`Failed to send Gotify notification: ${response.statusText}`); + throw new Error( + `Failed to send Gotify notification: ${response.statusText}`, + ); } -}; \ No newline at end of file +};