From fd548ff55a5c39c94a2bce19eed03cab4209d753 Mon Sep 17 00:00:00 2001 From: burgerni10 Date: Fri, 3 Jan 2025 11:08:59 +0100 Subject: [PATCH] fix(north): do not create an empty folder on north connection test --- backend/src/service/cache/file-cache.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/service/cache/file-cache.service.ts b/backend/src/service/cache/file-cache.service.ts index 99c3482560..533a53a071 100644 --- a/backend/src/service/cache/file-cache.service.ts +++ b/backend/src/service/cache/file-cache.service.ts @@ -43,7 +43,7 @@ export default class FileCacheService { this._archiveFolder = path.resolve(baseArchiveFolder, FILE_FOLDER); // Remove old files from archive even if the connector is not enabled - if (this._settings.caching.rawFiles.archive.retentionDuration > 0) { + if (this._settings.caching.rawFiles.archive.retentionDuration > 0 && this._settings.id !== 'test') { // refresh the archiveFolder at the beginning only if retentionDuration is different from 0 this.archiveTimeout = setTimeout(this.refreshArchiveFolder.bind(this), ARCHIVE_TIMEOUT_INIT); }