Update libs/events/utils.js
parent
60cddb11fa
commit
4cbdbfafe1
|
@ -572,9 +572,9 @@ module.exports = (s,config,lang,app,io) => {
|
|||
runRecord()
|
||||
return
|
||||
}
|
||||
const secondBefore = (parseInt(monitorDetails.detector_buffer_seconds_before) || 5) + 1
|
||||
s.insertCompletedVideo(monitorConfig,{
|
||||
file : filename,
|
||||
const secondsBefore = parseInt(monitorDetails.detector_buffer_seconds_before) || 5
|
||||
endTime: moment(new Date()).subtract(secondBefore,'seconds')._d,
|
||||
},function(err,response){
|
||||
const autoCompressionEnabled = monitorDetails.auto_compress_videos === '1';
|
||||
|
|
Loading…
Reference in New Issue