Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6167279

Browse files
committed
bad query
1 parent 4312764 commit 6167279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/routes/surveyRoutes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = app => {
4040
title,
4141
subject,
4242
body,
43-
recipients: recipients.split(',').map(email => ({ email })),
43+
recipients: recipients.split(',').map(email => ({ email: email.trim() })),
4444
_user: req.user.id,
4545
dateSent: Date.now()
4646
});

0 commit comments

Comments
 (0)