Skip to content

Commit 83c0f92

Browse files
author
Francis Lessard
committed
no message
1 parent 220a133 commit 83c0f92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/ParseRole.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('Parse Role testing', () => {
4949
}).then((x) => {
5050
x.set('foo', 'baz');
5151
// This should fail:
52-
return x.save();
52+
return x.save({},{sessionToken: ""});
5353
}).then((x) => {
5454
fail('Should not have been able to save.');
5555
}, (e) => {

src/Auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Auth.prototype.getUserRoles = function() {
8080
return Promise.resolve(this.userRoles);
8181
}
8282
if (this.rolePromise) {
83-
return rolePromise;
83+
return this.rolePromise;
8484
}
8585
this.rolePromise = this._loadRoles();
8686
return this.rolePromise;

0 commit comments

Comments
 (0)