Remove dependency from DatabaseAdapter on cache.js.

This commit is contained in:
Nikita Lutsenko
2016-02-26 19:50:12 -08:00
parent 49b01c961b
commit 0cf3f56b00
8 changed files with 40 additions and 32 deletions

View File

@@ -124,7 +124,7 @@ function ParseServer({
const filesController = new FilesController(filesControllerAdapter);
const pushController = new PushController(pushControllerAdapter);
const loggerController = new LoggerController(loggerControllerAdapter);
const hooksController = new HooksController(appId);
const hooksController = new HooksController(appId, collectionPrefix);
cache.apps[appId] = {
masterKey: masterKey,
@@ -141,7 +141,7 @@ function ParseServer({
hooksController: hooksController,
enableAnonymousUsers: enableAnonymousUsers,
allowClientClassCreation: allowClientClassCreation,
oauth: oauth,
oauth: oauth
};
// To maintain compatibility. TODO: Remove in v2.1