if references has no url don't send post, silently return

This commit is contained in:
Henry Oswald 2016-06-23 16:39:54 +01:00
parent 50352c94f6
commit 5371669f89

View file

@ -84,6 +84,8 @@ module.exports = ReferencesHandler =
ReferencesHandler._buildFileUrl projectId, fileId
allUrls = bibDocUrls.concat(bibFileUrls)
logger.log {projectId, isFullIndex, docIds, bibDocUrls}, "sending request to references service"
if !settings.apis.references.url?
return callback()
request.post {
url: "#{settings.apis.references.url}/project/#{projectId}/index"
json: