Updated the status code of the release upload method
This commit is contained in:
parent
5d03157d63
commit
c7ee872962
@ -68,7 +68,7 @@ app.post("/:id/upload", isAuthenticatedUser, releaseUpload, async (req, res) =>
|
||||
let file = req.files.upload;
|
||||
|
||||
const release = await getReleaseById(req.params.id);
|
||||
if (release === null) return res.status(409).json({message: "The provided release does not exist"});
|
||||
if (release === null) return res.status(404).json({message: "The provided release does not exist"});
|
||||
|
||||
const addon = await getAddonById(release.addon_id);
|
||||
if (addon === null) return res.status(404).json({message: "The provided release does not exist"});
|
||||
|
Loading…
x
Reference in New Issue
Block a user