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

Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 8dfabb8

Browse files
authored
Add a condition to ensure draft are not notifying users (#196)
1 parent b3ba486 commit 8dfabb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/save-event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function saveEvent (args, callback) {
296296
}
297297

298298
function emailDojoMembers(eventSaved, done) {
299-
if (eventInfo.notifyOnPublish) {
299+
if (eventInfo.notifyOnPublish && eventInfo.status === 'published') {
300300
seneca.act({
301301
role: 'cd-dojos',
302302
cmd: 'notify_all_members',

0 commit comments

Comments
 (0)