Exposes clientSDK into RestQuery, RestWrite and rest

This commit is contained in:
Florent Vilmart
2016-07-12 10:06:13 -04:00
parent a040aafcd8
commit 2498a954ce
12 changed files with 57 additions and 29 deletions

View File

@@ -14,12 +14,13 @@ import { default as FilesController } from './Controllers/FilesController';
// include
// keys
// redirectClassNameForKey
function RestQuery(config, auth, className, restWhere = {}, restOptions = {}) {
function RestQuery(config, auth, className, restWhere = {}, restOptions = {}, clientSDK) {
this.config = config;
this.auth = auth;
this.className = className;
this.restWhere = restWhere;
this.clientSDK = clientSDK;
this.response = null;
this.findOptions = {};
if (!this.auth.isMaster) {