Update server/notification-providers/resend.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Nityanand Thakur 2025-12-31 09:54:20 +05:30 committed by GitHub
parent 49273f94ef
commit f74834e4ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,9 +20,7 @@ class Resend extends NotificationProvider {
config = this.getAxiosConfigWithProxy(config);
const email = notification.resendFromEmail.trim();
const fromName = notification.resendFromName?.trim()
? notification.resendFromName.trim()
: "Uptime Kuma";
const fromName = notification.resendFromName?.trim() || "Uptime Kuma";
let data = {
from: `${fromName} <${email}>`,
to: notification.resendToEmail,