Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
node_crisp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
web
node_crisp
Commits
086e2a0d
Commit
086e2a0d
authored
Jul 28, 2021
by
Sebastián Long
Browse files
Options
Browse Files
Download
Plain Diff
Merge tag '1.0.5' into develop
Finish edit-provincia-text
parents
6f4c6199
48551b82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
handlers.js
handlers.js
+2
-2
No files found.
handlers.js
View file @
086e2a0d
...
@@ -198,7 +198,7 @@ module.exports =
...
@@ -198,7 +198,7 @@ module.exports =
let
choices
=
await
getSiguientesProvinciasMostrar
(
userData
);
let
choices
=
await
getSiguientesProvinciasMostrar
(
userData
);
userData
=
updateChoicesMostradas
(
userData
,
MOSTRANDO_PROVINCIAS_HASTA_KEY
);
userData
=
updateChoicesMostradas
(
userData
,
MOSTRANDO_PROVINCIAS_HASTA_KEY
);
await
crisp
.
setSiguientePaso
(
website_id
,
session_id
,
pasos
.
RESP_PROVINCIA
,
userData
);
await
crisp
.
setSiguientePaso
(
website_id
,
session_id
,
pasos
.
RESP_PROVINCIA
,
userData
);
await
crisp
.
sendPickerMessage
(
website_id
,
session_id
,
pasos
.
RESP_PROVINCIA
,
"
Selecciona tu provincia
"
,
choices
);
await
crisp
.
sendPickerMessage
(
website_id
,
session_id
,
pasos
.
RESP_PROVINCIA
,
"
¿En qué provincia se encuentra tu médico?
"
,
choices
);
}
else
{
}
else
{
await
crisp
.
sendTextMessage
(
website_id
,
session_id
,
"Gracias por contactarte! Estoy acá para cuando quieras reservar un turno"
);
await
crisp
.
sendTextMessage
(
website_id
,
session_id
,
"Gracias por contactarte! Estoy acá para cuando quieras reservar un turno"
);
}
}
...
@@ -210,7 +210,7 @@ module.exports =
...
@@ -210,7 +210,7 @@ module.exports =
let
choices
=
await
getSiguientesProvinciasMostrar
(
userData
);
let
choices
=
await
getSiguientesProvinciasMostrar
(
userData
);
userData
=
updateChoicesMostradas
(
userData
,
MOSTRANDO_PROVINCIAS_HASTA_KEY
);
userData
=
updateChoicesMostradas
(
userData
,
MOSTRANDO_PROVINCIAS_HASTA_KEY
);
await
crisp
.
setSiguientePaso
(
website_id
,
session_id
,
pasos
.
RESP_PROVINCIA
,
userData
);
await
crisp
.
setSiguientePaso
(
website_id
,
session_id
,
pasos
.
RESP_PROVINCIA
,
userData
);
await
crisp
.
sendPickerMessage
(
website_id
,
session_id
,
pasos
.
RESP_PROVINCIA
,
"
Selecciona tu provincia
"
,
choices
);
await
crisp
.
sendPickerMessage
(
website_id
,
session_id
,
pasos
.
RESP_PROVINCIA
,
"
¿En qué provincia se encuentra tu médico?
"
,
choices
);
}
else
{
}
else
{
//Set provincia y avanzar
//Set provincia y avanzar
userData
[
ID_PROVINCIA
]
=
choiceElegida
.
value
;
userData
[
ID_PROVINCIA
]
=
choiceElegida
.
value
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment