mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 14:01:52 +00:00
[MockDocUpdaterServer] return a 404 when a requested doc does not exist
This commit is contained in:
parent
65eed4138e
commit
4f860995d8
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ module.exports = MockDocUpdaterServer = {
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
return next(error)
|
return next(error)
|
||||||
}
|
}
|
||||||
|
if (!data) {
|
||||||
|
return res.sendStatus(404)
|
||||||
|
}
|
||||||
return res.json(data)
|
return res.json(data)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue