fix(worker): dcamera not required for 'upload complete'

pull/4/head
Cameron Clough 2022-03-24 23:01:21 +00:00
parent 50f4df7654
commit 1b2ea1b5d8
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
1 changed files with 7 additions and 1 deletions

View File

@ -321,7 +321,13 @@ async function updateSegments() {
}
});
const uploadComplete = Object.keys(fileStatus).every((key) => !!fileStatus[key]);
// dcamera not required for "upload complete"
const uploadComplete = [
SegmentFiles.fcamera,
SegmentFiles.qcamera,
SegmentFiles.qlog,
SegmentFiles.rlog,
].every((key) => !!fileStatus[key]);
logger.debug('updateSegments - uploadComplete', uploadComplete);
if (fileStatus[SegmentFiles.qcamera] && fileStatus[SegmentFiles.rlog] && !isProcessed) {