Skip to content

Commit

Permalink
feat(provider): ⚡ update
Browse files Browse the repository at this point in the history
  • Loading branch information
leifermendez committed Dec 19, 2022
1 parent 2f633c7 commit 0c94647
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 127 deletions.
5 changes: 1 addition & 4 deletions packages/bot/io/methods/addAnswer.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ const addAnswer =
nested: Array.isArray(nested) ? nested : [],
})

const callback =
typeof cb === 'function'
? cb
: () => console.log('Callback no definida')
const callback = typeof cb === 'function' ? cb : () => null

const lastCtx = inCtx.hasOwnProperty('ctx') ? inCtx.ctx : inCtx

Expand Down
4 changes: 2 additions & 2 deletions packages/contexts/src/mock/mock.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class MockContext extends CoreClass {
* @param {*} messageCtxInComming
* @returns
*/
handleMsg = async ({ from, body }) => {
console.log('DEBUG:', messageCtxInComming)
handleMsg = async () => {
console.log('DEBUG:')
}
}

Expand Down
Loading

0 comments on commit 0c94647

Please sign in to comment.