Commit 209b4b63 authored by Kamron Aroonrua's avatar Kamron Aroonrua 💬

1.2.6dev http callback

parent 69c60b98
# Changelog # Changelog
## [1.2.6dev] - 2023-05-21 ## [1.2.6dev] - 2023-05-21
### Added
- TRIGGER :: http trigger callback
- PLUGIN :: do-http-callback
### Removed ### Removed
- PLUGIN :: di-gistda-air - PLUGIN :: di-gistda-air
- PLUGIN :: di-tanpibut - PLUGIN :: di-tanpibut
......
...@@ -86,7 +86,7 @@ var process_req = function(req, res ,method) { ...@@ -86,7 +86,7 @@ var process_req = function(req, res ,method) {
httpcb.on(session_id,function(msg){ httpcb.on(session_id,function(msg){
resp_msg.response=msg.data.data; resp_msg.response=msg.data.data;
if(['data','data_only','json'].includes(String(cb_response).toLocaleLowerCase())){ if(['data','data_only','json'].includes(String(cb_response).toLocaleLowerCase())){
resp_msg(resp_msg) resp_msg=msg.data.data
} }
respHelper.responseOK(resp_msg); respHelper.responseOK(resp_msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment