Update server/notification-providers/resend.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
49273f94ef
commit
f74834e4ca
@ -20,9 +20,7 @@ class Resend extends NotificationProvider {
|
|||||||
config = this.getAxiosConfigWithProxy(config);
|
config = this.getAxiosConfigWithProxy(config);
|
||||||
const email = notification.resendFromEmail.trim();
|
const email = notification.resendFromEmail.trim();
|
||||||
|
|
||||||
const fromName = notification.resendFromName?.trim()
|
const fromName = notification.resendFromName?.trim() || "Uptime Kuma";
|
||||||
? notification.resendFromName.trim()
|
|
||||||
: "Uptime Kuma";
|
|
||||||
let data = {
|
let data = {
|
||||||
from: `${fromName} <${email}>`,
|
from: `${fromName} <${email}>`,
|
||||||
to: notification.resendToEmail,
|
to: notification.resendToEmail,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user