mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 02:13:35 -05:00
Rename files to reflect refactoring elsewhere
GitOrigin-RevId: 335f876913b7868cf69dcd55dd156261edd98945
This commit is contained in:
parent
487d9125a2
commit
60a75d12b0
1 changed files with 4 additions and 2 deletions
|
@ -24,16 +24,18 @@ function getContentDir(projectId, userId) {
|
||||||
module.exports = {
|
module.exports = {
|
||||||
async archiveFilesForBuild(projectId, userId, build) {
|
async archiveFilesForBuild(projectId, userId, build) {
|
||||||
logger.debug({ projectId, userId, build }, 'Will create zip file')
|
logger.debug({ projectId, userId, build }, 'Will create zip file')
|
||||||
const validFiles = await this._getAllOutputFiles(projectId, userId, build)
|
|
||||||
|
const outputFiles = await this._getAllOutputFiles(projectId, userId, build)
|
||||||
|
|
||||||
const archive = archiver('zip')
|
const archive = archiver('zip')
|
||||||
|
|
||||||
archive.on('error', err => {
|
archive.on('error', err => {
|
||||||
logger.warn({ err }, 'error emitted when creating output files archive')
|
logger.warn({ err }, 'error emitted when creating output files archive')
|
||||||
})
|
})
|
||||||
|
|
||||||
const missingFiles = []
|
const missingFiles = []
|
||||||
|
|
||||||
for (const file of validFiles) {
|
for (const file of outputFiles) {
|
||||||
let fileHandle
|
let fileHandle
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue