mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-10 08:25:22 +02:00
feat: add resend notification functionality
- Introduced a new notification type "resend" to the system. - Added database schema for resend notifications including fields for apiKey, fromAddress, and toAddress. - Implemented functions to create, update, and send resend notifications. - Updated notification router to handle resend notifications with appropriate API endpoints. - Enhanced existing notification services to support sending notifications via the Resend service. - Modified various notification utilities to accommodate the new resend functionality.
This commit is contained in:
@@ -69,6 +69,7 @@ enum notificationType {
|
||||
telegram
|
||||
discord
|
||||
email
|
||||
resend
|
||||
gotify
|
||||
ntfy
|
||||
custom
|
||||
@@ -456,6 +457,13 @@ table email {
|
||||
toAddress text[] [not null]
|
||||
}
|
||||
|
||||
table resend {
|
||||
resendId text [pk, not null]
|
||||
apiKey text [not null]
|
||||
fromAddress text [not null]
|
||||
toAddress text[] [not null]
|
||||
}
|
||||
|
||||
table environment {
|
||||
environmentId text [pk, not null]
|
||||
name text [not null]
|
||||
@@ -695,6 +703,7 @@ table notification {
|
||||
telegramId text
|
||||
discordId text
|
||||
emailId text
|
||||
resendId text
|
||||
gotifyId text
|
||||
ntfyId text
|
||||
customId text
|
||||
@@ -1139,6 +1148,8 @@ ref: notification.discordId - discord.discordId
|
||||
|
||||
ref: notification.emailId - email.emailId
|
||||
|
||||
ref: notification.resendId - resend.resendId
|
||||
|
||||
ref: notification.gotifyId - gotify.gotifyId
|
||||
|
||||
ref: notification.ntfyId - ntfy.ntfyId
|
||||
@@ -1197,4 +1208,4 @@ ref: volume_backup.redisId - redis.redisId
|
||||
|
||||
ref: volume_backup.composeId - compose.composeId
|
||||
|
||||
ref: volume_backup.destinationId - destination.destinationId
|
||||
ref: volume_backup.destinationId - destination.destinationId
|
||||
|
||||
Reference in New Issue
Block a user