Skip to content

Instantly share code, notes, and snippets.

@Albert-IV
Created May 6, 2013 21:56
Show Gist options
  • Save Albert-IV/5528547 to your computer and use it in GitHub Desktop.
Save Albert-IV/5528547 to your computer and use it in GitHub Desktop.
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