diff --git a/src/ddpbridge.js b/src/ddpbridge.js index 70713fb..58f0a43 100644 --- a/src/ddpbridge.js +++ b/src/ddpbridge.js @@ -11,7 +11,7 @@ var wasConnected = false; //var myId; var collectWsMessage = createWsMessageCollector(async function(data, startDate, endDate){ - await ws.send({files:[{ + await webhook.send({files:[{ attachment: data, name: `daydun piano main raw data recording from ${startDate.toISOString()} to ${endDate.toISOString()} .txt.gz` }]});