Moved getting the url for every file from RestQuery into FilesController.

This commit is contained in:
Nikita Lutsenko
2016-02-09 19:31:23 -08:00
parent 3072782574
commit 8ca25cbabe
6 changed files with 69 additions and 66 deletions

View File

@@ -13,7 +13,6 @@ function Config(applicationId, mount) {
this.applicationId = applicationId;
this.collectionPrefix = cacheInfo.collectionPrefix || '';
this.database = DatabaseAdapter.getDatabaseConnection(applicationId);
this.masterKey = cacheInfo.masterKey;
this.clientKey = cacheInfo.clientKey;
this.javascriptKey = cacheInfo.javascriptKey;
@@ -21,6 +20,10 @@ function Config(applicationId, mount) {
this.restAPIKey = cacheInfo.restAPIKey;
this.fileKey = cacheInfo.fileKey;
this.facebookAppIds = cacheInfo.facebookAppIds;
this.database = DatabaseAdapter.getDatabaseConnection(applicationId);
this.filesController = cacheInfo.filesController;
this.mount = mount;
}