Skip to content

Commit

Permalink
Added: Update Status to webhook API
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyvishal committed Apr 9, 2024
1 parent e3db238 commit 6f14f48
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion controllers/Bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ async function process_action(action, text, session, sender=null, format='applic
orders[index].message.order.fulfillments[0].state.descriptor.name = req.body.data.data.attributes.state_code
let reply_message = '';
if(req.body.data.data.attributes.state_code === "charger-not-working"){
console.log('here3', session.data.orders);
reply_message ="Hey, looks like the charger is not working, do you want to look for other chargers on the route?"
await actionsService.send_message(session.key, reply_message);
if(!session.data.text) session.data.text=[]
Expand Down

0 comments on commit 6f14f48

Please sign in to comment.