Skip to content

Instantly share code, notes, and snippets.

@auggernaut
Created July 17, 2014 22:05
Show Gist options
  • Save auggernaut/76a70775f3afa90b82c3 to your computer and use it in GitHub Desktop.
Save auggernaut/76a70775f3afa90b82c3 to your computer and use it in GitHub Desktop.
update Card class in parse
console.log "card: " + cardId + " choice: " + choiceId
cardQuery = new Parse.Query 'Card'
cardQuery.equalTo 'objectId', cardId
cardQuery.first
success: (card) =>
card.addUnique 'hasPlayed', user.id
card.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment