Created
May 6, 2013 21:56
-
-
Save Albert-IV/5528547 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
each user in @userLinks | |
if (usrId != user._id) | |
repAlert = new Alert({ # Create new alert | |
alertTime: new Date() | |
leadId: @_id | |
userId: user._id | |
creatorId: usrId | |
category: 'new_application' | |
comment: 'New application process for this lead!' | |
}) | |
repAlert.save() # Save new alert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment