From 7f9aa5b70557fe362987677da621732fca5030f0 Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 9 Jul 2018 13:02:26 -0700 Subject: [PATCH] fix syntax for video email attachment on event --- camera.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camera.js b/camera.js index 8be86382..7627e9ce 100644 --- a/camera.js +++ b/camera.js @@ -3338,8 +3338,8 @@ s.camera=function(x,e,cn,tx){ } detectorStreamBuffers.slice(detectorStreamBuffers.length - 2,detectorStreamBuffers.length).forEach(function(filepath,n){ files.push({ - attachment: filepath, - name: 'Video Clip '+n+'.ts' + filename: 'Video Clip '+n+'.ts', + content: fs.readFileSync(filepath) }) }) if(screenshotBuffer){