-
Notifications
You must be signed in to change notification settings - Fork 0
Convert queries to promises, useMasterKey #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| Parse.Cloud.define("stats", function(request, response) { | ||
|
|
||
| Parse.Cloud.useMasterKey(); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed? Just wondering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks! That makes sense.
- convert rest of find/first methods to promise format
- useMasterKey() to { useMasterKey: true } formatting
- missing find that hadn't been coverted
- added a field for Firebase Server Key - added a field for Firebase Sender ID
* note, first input arg for the save method should be null or empty obj:
ex: save( {},{ useMasterKey: true } )
Convert now-unsupported parse find, first methods to follow promises styling.
Also, convert
Parse.Cloud.useMasterKey()to new styling of{ useMasterKey: true }.