Skip to content

Convert queries to promises, useMasterKey - #1

Open
nbw wants to merge 44 commits into
masterfrom
parse-server-promises
Open

Convert queries to promises, useMasterKey#1
nbw wants to merge 44 commits into
masterfrom
parse-server-promises

Conversation

@nbw

@nbw nbw commented Jan 19, 2017

Copy link
Copy Markdown

Convert now-unsupported parse find, first methods to follow promises styling.

Also, convert Parse.Cloud.useMasterKey() to new styling of { useMasterKey: true }.

Comment thread cloud/Stats.js
Parse.Cloud.define("stats", function(request, response) {

Parse.Cloud.useMasterKey();

Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks! That makes sense.

Nathan Willson added 28 commits January 19, 2017 11:49
- 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 } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants