catch getProjectAsset error
This commit is contained in:
parent
bdd8df6301
commit
3b33f3acca
1 changed files with 4 additions and 0 deletions
|
@ -143,6 +143,10 @@ export function getProjectAsset(req, res) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return res.status(404).send({ message: 'Project with that id does not exist' });
|
return res.status(404).send({ message: 'Project with that id does not exist' });
|
||||||
}
|
}
|
||||||
|
if (!project) {
|
||||||
|
console.error(req.params.project_id);
|
||||||
|
return res.status(404).send({ message: 'Project with that id does not exist' });
|
||||||
|
}
|
||||||
|
|
||||||
let assetURL = null;
|
let assetURL = null;
|
||||||
const seekPath = req.params[0]; // req.params.asset_path;
|
const seekPath = req.params[0]; // req.params.asset_path;
|
||||||
|
|
Loading…
Reference in a new issue