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

@@ -36,7 +36,7 @@ export class SessionsRouter extends ClassesRouter {
throw new Parse.Error(Parse.Error.INVALID_SESSION_TOKEN,
'Session token required.');
}
return rest.find(req.config, Auth.master(req.config), '_Session', { sessionToken: req.info.sessionToken })
return rest.find(req.config, Auth.master(req.config), '_Session', { sessionToken: req.info.sessionToken }, undefined, req.info.clientSDK)
.then((response) => {
if (!response.results || response.results.length == 0) {
throw new Parse.Error(Parse.Error.INVALID_SESSION_TOKEN,