diff --git a/services/web/app/coffee/Features/ReferencesSearch/ReferencesSearchController.coffee b/services/web/app/coffee/Features/ReferencesSearch/ReferencesSearchController.coffee index c5c507dfd8..b81355dc24 100644 --- a/services/web/app/coffee/Features/ReferencesSearch/ReferencesSearchController.coffee +++ b/services/web/app/coffee/Features/ReferencesSearch/ReferencesSearchController.coffee @@ -13,7 +13,11 @@ module.exports = ReferencesSearchController = if !doc_id logger.log project_id: project_id, "no fileUrl supplied" return res.send 400 - ProjectLocator.findElement {project_id: project_id, element_id: doc_id, type: 'doc'}, (err, doc) -> + ProjectLocator.findElement { + project_id: project_id, + element_id: doc_id, + type: 'doc' + }, (err, doc) -> if err? logger.err {err, project_id, doc_id}, "error finding doc to index" return res.send 500 diff --git a/services/web/test/UnitTests/coffee/ReferencesSearch/ReferencesSearchControllerTests.coffee b/services/web/test/UnitTests/coffee/ReferencesSearch/ReferencesSearchControllerTests.coffee index cd07eb9652..07acbc78e8 100644 --- a/services/web/test/UnitTests/coffee/ReferencesSearch/ReferencesSearchControllerTests.coffee +++ b/services/web/test/UnitTests/coffee/ReferencesSearch/ReferencesSearchControllerTests.coffee @@ -57,7 +57,8 @@ describe "ReferencesSearchController", -> @res.send = (status) => @ReferencesSearchHandler.indexFile.calledOnce.should.equal true expected_url = "http://some.url/project/2222/doc/3333" - @ReferencesSearchHandler.indexFile.calledWith(@project_id, expected_url).should.equal true + @ReferencesSearchHandler.indexFile + .calledWith(@project_id, expected_url).should.equal true done() @controller.indexFile(@req, @res)