Skip to content

Commit 8e578b0

Browse files
committed
Dist fixed
1 parent dfdc7ad commit 8e578b0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/kuzzle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ module.exports = Kuzzle = function (url, options, cb) {
541541
filter: function (name, func, target, passes) {
542542
var whitelist = ['getAllStatistics', 'getServerInfo', 'getStatistics',
543543
'listCollections', 'listIndexes', 'login', 'logout', 'now', 'query',
544-
'checkToken'];
544+
'checkToken', 'whoAmI'];
545545

546546
return passes && whitelist.indexOf(name) !== -1;
547547
}
@@ -763,7 +763,7 @@ Kuzzle.prototype.checkToken = function (token, callback) {
763763
Kuzzle.prototype.whoAmI = function (callback) {
764764
var self = this;
765765

766-
this.callbackRequired('Kuzzle.checkToken', callback);
766+
this.callbackRequired('Kuzzle.whoAmI', callback);
767767

768768
this.query({controller: 'auth', action: 'getCurrentUser'}, {}, {}, callback);
769769

0 commit comments

Comments
 (0)