Need to define id in post complete
This commit is contained in:
parent
7f9ad68cce
commit
27ac4104dc
|
@ -273,6 +273,7 @@ app.post('/job/:id', uploadOnnx.single('model'), async (req, res, next) => {
|
|||
console.error('No file in upload');
|
||||
return next('ERROR: Please model as ONNX file');
|
||||
}
|
||||
id = req.params.id;
|
||||
filePath = (0, path_1.join)(data, `${id}.onnx`);
|
||||
if (typeof req.body.meta !== 'undefined') {
|
||||
meta = req.body.meta;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -278,6 +278,7 @@ app.post('/job/:id', uploadOnnx.single('model'), async (req : Request, res : Res
|
|||
return next('ERROR: Please model as ONNX file');
|
||||
}
|
||||
|
||||
id = req.params.id;
|
||||
filePath = join(data, `${id}.onnx`);
|
||||
if (typeof req.body.meta !== 'undefined') {
|
||||
meta = req.body.meta;
|
||||
|
|
Loading…
Reference in New Issue