Skip to content

Commit

Permalink
fix(north): do not create an empty folder on north connection test
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerni10 committed Jan 6, 2025
1 parent e92acaf commit fd548ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/service/cache/file-cache.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fd548ff

Please sign in to comment.