Skip to content

Commit 025e7a3

Browse files
authored
Adds depreciation notes for Parse.Cloud.useMasterKey(), (#3204)
Adds depreciation notes for Parse.Cloud.useMasterKey()
1 parent ca286b7 commit 025e7a3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cloud-code/Parse.Cloud.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ ParseCloud._removeAllHooks = () => {
5959
triggers._unregisterAll();
6060
}
6161

62+
ParseCloud.useMasterKey = () => {
63+
// eslint-disable-next-line
64+
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")
65+
}
66+
6267
ParseCloud.httpRequest = require("./httpRequest");
6368

6469
module.exports = ParseCloud;

0 commit comments

Comments
 (0)