mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 04:29:16 +00:00
toJson
This commit is contained in:
6
packages/io/methods/toJson.js
Normal file
6
packages/io/methods/toJson.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const toJson = (inCtx) => () => {
|
||||
const lastCtx = inCtx.hasOwnProperty('ctx') ? inCtx.ctx : inCtx
|
||||
return lastCtx.json
|
||||
}
|
||||
|
||||
module.exports = { toJson }
|
||||
Reference in New Issue
Block a user