Skip to content

Commit f117d4e

Browse files
Update backend/utils/emailService.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent d717f23 commit f117d4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/utils/emailService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const dotenv = require('dotenv');
55
dotenv.config();
66
const resend = new Resend(process.env.RESEND_API_KEY || 're_dummy_key_for_testing');
77

8-
async function sendOtp(email, otp, {subject = "Verify your urBackend account"}) {
8+
async function sendOtp(email, otp, { subject = "Verify your urBackend account" } = {}) {
99
try {
1010
const { data, error } = await resend.emails.send({
1111
from: 'urBackend <urbackend@bitbros.in>',

0 commit comments

Comments
 (0)