mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-19 03:59:17 +00:00
fix
This commit is contained in:
@@ -16,21 +16,19 @@ const addAnswer = (inCtx) => (answer, options) => {
|
||||
const ctxAnswer = () => {
|
||||
const ref = `ans_${generateRef()}`
|
||||
|
||||
const options = {
|
||||
...getAnswerOptions(),
|
||||
keyword: {},
|
||||
}
|
||||
|
||||
const json = [].concat(inCtx.json).concat([
|
||||
{
|
||||
ref,
|
||||
keyword: lastCtx.ref,
|
||||
answer,
|
||||
options,
|
||||
},
|
||||
])
|
||||
/**
|
||||
* Se guarda en db
|
||||
*/
|
||||
|
||||
const options = {
|
||||
answer: getAnswerOptions(),
|
||||
keyword: {},
|
||||
}
|
||||
|
||||
return { ...lastCtx, ref, answer, json, options }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user