Compile with new changes
This commit is contained in:
parent
522ad74717
commit
7f9ad68cce
|
@ -218,7 +218,7 @@ app.post('/', uploadZip.single('dataset'), async (req, res, next) => {
|
||||||
let fileExists;
|
let fileExists;
|
||||||
let id;
|
let id;
|
||||||
req.setTimeout(0);
|
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');
|
console.error('No file in upload');
|
||||||
return next('ERROR: Please upload dataset as zip file');
|
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 meta = null;
|
||||||
let id;
|
let id;
|
||||||
req.setTimeout(0);
|
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');
|
console.error('No file in upload');
|
||||||
return next('ERROR: Please model as ONNX file');
|
return next('ERROR: Please model as ONNX file');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue