Need to define id in post complete

This commit is contained in:
Matt McWilliams 2023-06-30 10:50:29 -04:00
parent 7f9ad68cce
commit 27ac4104dc
3 changed files with 3 additions and 1 deletions

1
dist/index.js vendored
View File

@ -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;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -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;