Skip to content

Commit

Permalink
Adds depreciation notes for Parse.Cloud.useMasterKey(), (#3204)
Browse files Browse the repository at this point in the history
Adds depreciation notes for Parse.Cloud.useMasterKey()
  • Loading branch information
flovilmart committed Dec 7, 2016
1 parent ca286b7 commit 025e7a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cloud-code/Parse.Cloud.js
Expand Up @@ -59,6 +59,11 @@ ParseCloud._removeAllHooks = () => {
triggers._unregisterAll();
}

ParseCloud.useMasterKey = () => {
// eslint-disable-next-line
console.warn("Parse.Cloud.useMasterKey is deprecated (and has no effect anymore) on parse-server, please refer to the cloud code migration notes: https://github.com/ParsePlatform/parse-server/wiki/Compatibility-with-Hosted-Parse#cloud-code")
}

ParseCloud.httpRequest = require("./httpRequest");

module.exports = ParseCloud;

0 comments on commit 025e7a3

Please sign in to comment.