mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-13 23:45:17 +00:00
fix: truncate error message in backup notifications to 1010 characters
- Updated the error message formatting in both database and volume backup notification functions to limit the displayed message length, ensuring better readability and preventing overflow.
This commit is contained in:
@@ -153,7 +153,7 @@ export const sendDatabaseBackupNotifications = async ({
|
|||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
name: decorate("`⚠️`", "Error Message"),
|
name: decorate("`⚠️`", "Error Message"),
|
||||||
value: `\`\`\`${errorMessage}\`\`\``,
|
value: `\`\`\`${errorMessage.substring(0, 1010)}\`\`\``,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ export const sendVolumeBackupNotifications = async ({
|
|||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
name: decorate("`⚠️`", "Error Message"),
|
name: decorate("`⚠️`", "Error Message"),
|
||||||
value: `\`\`\`${errorMessage}\`\`\``,
|
value: `\`\`\`${errorMessage.substring(0, 1010)}\`\`\``,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
|
|||||||
Reference in New Issue
Block a user