Cleanup, remove unusued methods and unify cache.js.

This commit is contained in:
Nikita Lutsenko
2016-02-26 20:55:17 -08:00
parent db9b72b147
commit 9bc636dc5c
8 changed files with 46 additions and 60 deletions

View File

@@ -157,8 +157,8 @@ export function maybeRunTrigger(triggerType, auth, parseObject, originalParseObj
var response = getResponseObject(request, resolve, reject);
// Force the current Parse app before the trigger
Parse.applicationId = applicationId;
Parse.javascriptKey = cache.apps[applicationId].javascriptKey || '';
Parse.masterKey = cache.apps[applicationId].masterKey;
Parse.javascriptKey = cache.apps.get(applicationId).javascriptKey || '';
Parse.masterKey = cache.apps.get(applicationId).masterKey;
trigger(request, response);
});
};