Hi,
I have just wrote code for to get data from local db in the ExternalEvent.
The db data need to send back to where the request is called from.
Sample code here:
$db.get('key')
.then((data)=>{
renderData(null, data)
})
Expected response is:
{
data: {
requestId:***********,
response:{
id: 34
}
}
}
But we got like:
{
success: true
}
Thank you.