This commit is contained in:
Leifer Mendez
2022-11-02 21:10:18 +01:00
parent 33797ce9de
commit 0a9e14c460
5 changed files with 45 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
const toJson = (inCtx) => () => {
const lastCtx = inCtx.hasOwnProperty('ctx') ? inCtx.ctx : inCtx
return lastCtx.json
}
module.exports = { toJson }