@@ -65,7 +65,7 @@ Security.prototype.fetchRole = function (id, options, cb) {
6565
6666  self . kuzzle . callbackRequired ( 'Security.fetchRole' ,  cb ) ; 
6767
68-   self . kuzzle . query ( this . buildQueryArgs ( 'fetchRole ' ) ,  data ,  options ,  function  ( err ,  response )  { 
68+   self . kuzzle . query ( this . buildQueryArgs ( 'getRole ' ) ,  data ,  options ,  function  ( err ,  response )  { 
6969    cb ( err ,  err  ? undefined  : new  Role ( self ,  response . result . _id ,  response . result . _source ) ) ; 
7070  } ) ; 
7171} ; 
@@ -248,7 +248,7 @@ Security.prototype.fetchProfile = function (id, options, cb) {
248248
249249  self . kuzzle . callbackRequired ( 'Security.fetchProfile' ,  cb ) ; 
250250
251-   self . kuzzle . query ( this . buildQueryArgs ( 'fetchProfile ' ) ,  data ,  options ,  function  ( error ,  response )  { 
251+   self . kuzzle . query ( this . buildQueryArgs ( 'getProfile ' ) ,  data ,  options ,  function  ( error ,  response )  { 
252252    cb ( error ,  error  ? undefined  : new  Profile ( self ,  response . result . _id ,  response . result . _source ) ) ; 
253253  } ) ; 
254254} ; 
@@ -439,7 +439,7 @@ Security.prototype.fetchUser = function (id, options, cb) {
439439
440440  self . kuzzle . callbackRequired ( 'Security.fetchUser' ,  cb ) ; 
441441
442-   self . kuzzle . query ( this . buildQueryArgs ( 'fetchUser ' ) ,  data ,  options ,  function  ( err ,  response )  { 
442+   self . kuzzle . query ( this . buildQueryArgs ( 'getUser ' ) ,  data ,  options ,  function  ( err ,  response )  { 
443443    cb ( err ,  err  ? undefined  : new  User ( self ,  response . result . _id ,  response . result . _source ) ) ; 
444444  } ) ; 
445445} ; 
0 commit comments