Hey there, I could really use some assistance with the code snippet below. My goal is to map and store the values in an SQL database. Unfortunately, I'm struggling to extract the values from the array ttNieuweSessie.
As a result, all the values are showing up as undefined. Does anyone have any suggestions on how to resolve this issue?
msg.topic = ttNieuweSessie.map(function(){
return 'INSERT INTO tblSessies (idSessie, BeginTijdms, idApparaat) VALUES ('+idSessie+', '+BeginTijdms+', '+idApparaat+') ';
});