mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 06:03:03 +00:00
Merge pull request #1189 from sharelatex/spd-open-in-overleaf-zip-files
open-in-overleaf: Zip file support GitOrigin-RevId: 06442e44d5333fab5df3e48e76fc13c5bcbbd7ba
This commit is contained in:
parent
3138919cb7
commit
eed29c0adc
2 changed files with 1 additions and 3 deletions
|
@ -221,8 +221,6 @@ describe "ProjectInviteTests", ->
|
|||
@fakeProject = null
|
||||
done()
|
||||
|
||||
afterEach ->
|
||||
|
||||
describe 'creating two invites', ->
|
||||
|
||||
beforeEach (done) ->
|
||||
|
|
|
@ -26,7 +26,7 @@ module.exports = MockDocStoreApi =
|
|||
app.get "/project/:project_id/doc/:doc_id", (req, res, next) =>
|
||||
{project_id, doc_id} = req.params
|
||||
doc = @docs[project_id][doc_id]
|
||||
if doc.deleted and !req.query.include_deleted
|
||||
if !doc? or (doc.deleted and !req.query.include_deleted)
|
||||
res.sendStatus 404
|
||||
else
|
||||
res.send JSON.stringify doc
|
||||
|
|
Loading…
Reference in a new issue