mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-20 14:45:42 +02:00
fix(notifications): update Mattermost notification handling
- Changed webhookUrl validation to ensure it is a valid URL. - Updated input types for createMattermostNotification and updateMattermostNotification functions to use z.infer for better type inference. - Refactored sendMattermostNotification to improve error handling and payload construction.
This commit is contained in:
@@ -494,7 +494,7 @@ export const apiCreateMattermost = notificationsSchema
|
||||
serverThreshold: true,
|
||||
})
|
||||
.extend({
|
||||
webhookUrl: z.string().min(1),
|
||||
webhookUrl: z.string().url(),
|
||||
channel: z.string().optional(),
|
||||
username: z.string().optional(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user