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:
Simon Detheridge 2018-12-03 11:06:31 +00:00 committed by sharelatex
parent 3138919cb7
commit eed29c0adc
2 changed files with 1 additions and 3 deletions

View file

@ -221,8 +221,6 @@ describe "ProjectInviteTests", ->
@fakeProject = null
done()
afterEach ->
describe 'creating two invites', ->
beforeEach (done) ->

View file

@ -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