Skip to content

Commit f329116

Browse files
author
Vikas Agarwal
committed
fixing handling of “immediately” setting
1 parent 55e4c53 commit f329116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect/notificationServices/email.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ function handler(topicName, messageJSON, notification) {
288288
}
289289
logger.debug('bundlePeriod=>', bundlePeriod);
290290

291-
if (bundlePeriod) {
291+
if (bundlePeriod && "immediately" !== bundlePeriod) {
292292
if (!SCHEDULED_EVENT_PERIOD[bundlePeriod]) {
293293
throw new Error(`User's '${notification.userId}' setting for service`
294294
+ ` '${SETTINGS_EMAIL_SERVICE_ID}' option 'bundlePeriod' has unsupported value '${bundlePeriod}'.`);

0 commit comments

Comments
 (0)