mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
chore(lint): run biome
This commit is contained in:
@@ -618,10 +618,7 @@ export const UpdateNotification = ({ notificationId }: Props) => {
|
||||
<FormItem>
|
||||
<FormLabel>App Token</FormLabel>
|
||||
<FormControl>
|
||||
<Input
|
||||
placeholder="AzxF2.d9KzP..."
|
||||
{...field}
|
||||
/>
|
||||
<Input placeholder="AzxF2.d9KzP..." {...field} />
|
||||
</FormControl>
|
||||
<FormMessage />
|
||||
</FormItem>
|
||||
|
||||
@@ -353,7 +353,7 @@ export const notificationRouter = createTRPCRouter({
|
||||
await sendGotifyNotification(
|
||||
input,
|
||||
"Test Notification",
|
||||
"Hi, From Dokploy 👋"
|
||||
"Hi, From Dokploy 👋",
|
||||
);
|
||||
return true;
|
||||
} catch (error) {
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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}`,
|
||||
);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user