mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
if references has no url don't send post, silently return
This commit is contained in:
parent
50352c94f6
commit
5371669f89
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue