Skip to content

Commit

Permalink
delete library folder after every conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateo Miccino authored Sep 8, 2023
1 parent 960844f commit 2832627
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions consumer-server/src/logic/conversion-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ export async function executeConversion(components: Pick<AppComponents, 'logs' |
} catch (err: any) {
logger.error(err, defaultLoggerMetadata)
}
// delete library folder
try {
await rimraf(`$PROJECT_PATH/Library`, { maxRetries: 3 })
} catch (err: any) {
logger.error(err, defaultLoggerMetadata)
}
}

logger.debug("Conversion finished", defaultLoggerMetadata)
Expand Down

0 comments on commit 2832627

Please sign in to comment.