From 83c0f92553fc3eda195488dc7f962c21d15d0b95 Mon Sep 17 00:00:00 2001 From: Francis Lessard Date: Sat, 13 Feb 2016 08:18:43 -0500 Subject: [PATCH] no message --- spec/ParseRole.spec.js | 2 +- src/Auth.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/ParseRole.spec.js b/spec/ParseRole.spec.js index 44476f1b..919e0b55 100644 --- a/spec/ParseRole.spec.js +++ b/spec/ParseRole.spec.js @@ -49,7 +49,7 @@ describe('Parse Role testing', () => { }).then((x) => { x.set('foo', 'baz'); // This should fail: - return x.save(); + return x.save({},{sessionToken: ""}); }).then((x) => { fail('Should not have been able to save.'); }, (e) => { diff --git a/src/Auth.js b/src/Auth.js index ad905654..27bbf885 100644 --- a/src/Auth.js +++ b/src/Auth.js @@ -80,7 +80,7 @@ Auth.prototype.getUserRoles = function() { return Promise.resolve(this.userRoles); } if (this.rolePromise) { - return rolePromise; + return this.rolePromise; } this.rolePromise = this._loadRoles(); return this.rolePromise;