From 7f9ad68cced156b1bafdf503ea53b6d80d3ea81c Mon Sep 17 00:00:00 2001 From: mattmcw Date: Fri, 30 Jun 2023 10:46:15 -0400 Subject: [PATCH] Compile with new changes --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 5e0a94f..86777c2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -218,7 +218,7 @@ app.post('/', uploadZip.single('dataset'), async (req, res, next) => { let fileExists; let id; req.setTimeout(0); - if (typeof req.file === 'undefined' && req.file === null) { + if (typeof req.file === 'undefined' || req.file === null) { console.error('No file in upload'); return next('ERROR: Please upload dataset as zip file'); } @@ -269,7 +269,7 @@ app.post('/job/:id', uploadOnnx.single('model'), async (req, res, next) => { let meta = null; let id; req.setTimeout(0); - if (typeof req.file === 'undefined' && req.file === null) { + if (typeof req.file === 'undefined' || req.file === null) { console.error('No file in upload'); return next('ERROR: Please model as ONNX file'); }