Skip to content

Commit

Permalink
Merge pull request #21 from devsapp/fix/invoke
Browse files Browse the repository at this point in the history
fix:invake silent reture
  • Loading branch information
rsonghuster authored Nov 7, 2024
2 parents 9adb6f2 + fbd64c0 commit 3cff081
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/subCommands/invoke/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ export default class Invoke {
logger.debug(`invoke function ${this.functionName} result ${JSON.stringify(result)}`);
if (this.silent) {
// console.log(result.body);
return result.body;
return {
body: result.body,
};
} else {
this.showLog(result.headers, result.body);
}
Expand Down

0 comments on commit 3cff081

Please sign in to comment.