Fix upload error returning status code 200

pull/5/head
trivernis 5 years ago
parent dcd96e7573
commit 5c1cea86eb

@ -84,6 +84,9 @@ export class UploadRoute extends Route {
success: false,
};
}
if (uploadConfirmation.error) {
res.status(httpStatus.BAD_REQUEST);
}
res.json(uploadConfirmation);
});
}

Loading…
Cancel
Save