Skip to content

Commit

Permalink
Update lib/user.js
Browse files Browse the repository at this point in the history
Co-authored-by: Kræn Hansen <[email protected]>
  • Loading branch information
takameyer and kraenhansen committed Sep 13, 2022
1 parent 08b616a commit 74f2158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const instanceMethods = {
},

async callFunction(name, ...args) {
this._callFunctionOnService(name, undefined, ...args);
return this._callFunctionOnService(name, undefined, ...args);
},

async _callFunctionOnService(name, serviceName, ...args) {
Expand Down Expand Up @@ -110,7 +110,7 @@ const instanceMethods = {
get(target, name, receiver) {
if (typeof name === "string" && name != "inspect") {
return (...args) => {
return user._callFunctionOnService(name, serviceName, args);
return user._callFunctionOnService(name, serviceName, ...args);
};
} else {
return Reflect.get(target, name, receiver);
Expand Down

0 comments on commit 74f2158

Please sign in to comment.