diff --git a/consumer-server/src/logic/message-handler.ts b/consumer-server/src/logic/message-handler.ts index 8dab09ea..57bf0a16 100644 --- a/consumer-server/src/logic/message-handler.ts +++ b/consumer-server/src/logic/message-handler.ts @@ -34,7 +34,7 @@ export function createMessageHandlerComponent({ const filesToUpload = result.lodsFiles.concat(result.logFile) await storage.storeFiles(filesToUpload, base, message.entity.entityTimestamp.toString()) - fs.rmdirSync(result.outputPath, { recursive: true }) + fs.rmSync(result.outputPath, { recursive: true }) } return { handle }