Created
July 17, 2014 22:05
-
-
Save auggernaut/76a70775f3afa90b82c3 to your computer and use it in GitHub Desktop.
update Card class in parse
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
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