Merge pull request #12066 from overleaf/em-multibib-errors

Parse all .blg files after a compile

GitOrigin-RevId: be84974c247fd7a476a12c47943ab54947146e4c
This commit is contained in:
Eric Mc Sween 2023-03-13 09:05:38 -04:00 committed by Copybot
parent 390d7ed005
commit 862276f8a1

View file

@ -99,9 +99,15 @@ export const handleLogFiles = async (outputFiles, data, signal) => {
}
}
const blgFile = outputFiles.get('output.blg')
const blgFiles = []
if (blgFile) {
for (const [filename, file] of outputFiles) {
if (filename.endsWith('.blg')) {
blgFiles.push(file)
}
}
for (const blgFile of blgFiles) {
try {
const response = await fetchFromCompileDomain(
buildURL(blgFile, data.pdfDownloadDomain, data.enableHybridPdfDownload),