"query":"select location from schedule a where a.id = {{$('Webhook').item.json.body.schedule_id}};\n",
"options":{}
},
"id":"74d2db72-a3c9-434f-94ba-d5098f83756b",
"name":"get_location",
"type":"n8n-nodes-base.mySql",
"typeVersion":2.4,
"position":[
60,
40
],
"credentials":{
"mySql":{
"id":"YpVIiGwzmmkf7vR7",
"name":"SL-DB-PRD"
}
}
},
{
"parameters":{
"jsCode":"// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nlet output_info = {};\nlet text_info = {};\ninfo = JSON.parse($('Webhook').item.json.body.info).full_text.replace(/https:\\/\\/[^\\s]+/g, '').replaceAll(/[ \\t\\n\\r]+/g, ' ').replaceAll(\"\\\"\", '” ');\nconsole.log(info);\nuser_id = JSON.parse($('Webhook').item.json.body.info).id;\ntext_info['full_text'] = info;\noutput_info['text'] = JSON.stringify(text_info);\noutput_info['msg_info'] = info;\noutput_info['user_id'] = user_id;\nreturn output_info;"