From 0ba13079ee656037c85a73f9c7519b5f044e1856 Mon Sep 17 00:00:00 2001 From: Owen Kaluza Date: Tue, 6 Jun 2023 12:14:40 +1000 Subject: [PATCH] Support video files --- libs/taskNew.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/taskNew.js b/libs/taskNew.js index 33e9e91..6bd8c9e 100644 --- a/libs/taskNew.js +++ b/libs/taskNew.js @@ -288,7 +288,7 @@ module.exports = { const tmpPath = path.join("tmp", uuid); const { options, taskName, skipPostProcessing, outputs, dateCreated, fileNames, imagesCount, webhook } = params; - if (fileNames.length < 2){ + if (fileNames.length < 1){ throw new Error(`Not enough images (${fileNames.length} files uploaded)`); }