mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Not sending patch created emails to Nick/George/Scott.
This commit is contained in:
parent
ddddc03fd4
commit
c40b8b1e5d
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,8 @@ PatchHandler = class PatchHandler extends Handler
|
|||
docLink = "http://codecombat.com#{req.headers['x-current-path']}"
|
||||
@sendPatchCreatedHipChatMessage creator: req.user, patch: doc, target: doc.targetLoaded, docLink: docLink
|
||||
watchers = doc.targetLoaded.get('watchers') or []
|
||||
watchers = (w for w in watchers when not w.equals(req.user.get('_id')))
|
||||
# Don't send these emails to the person who submitted the patch, or to Nick, George, or Scott.
|
||||
watchers = (w for w in watchers when not w.equals(req.user.get('_id')) and not (w + '' in ['512ef4805a67a8c507000001', '5162fab9c92b4c751e000274', '51538fdb812dd9af02000001'])
|
||||
return unless watchers?.length
|
||||
User.find({_id: {$in: watchers}}).select({email: 1, name: 1}).exec (err, watchers) =>
|
||||
for watcher in watchers
|
||||
|
|
Loading…
Reference in a new issue