From 191a2fdb9209e0cd87785d50c37f3cda02c61b36 Mon Sep 17 00:00:00 2001 From: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> Date: Thu, 16 Oct 2025 13:34:13 +0200 Subject: [PATCH] fix: storage issue (show file or api more consistently) --- packages/tm-core/src/storage/api-storage.ts | 7 +++++++ packages/tm-core/src/storage/file-storage/file-storage.ts | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/packages/tm-core/src/storage/api-storage.ts b/packages/tm-core/src/storage/api-storage.ts index af4bc189..51784c9e 100644 --- a/packages/tm-core/src/storage/api-storage.ts +++ b/packages/tm-core/src/storage/api-storage.ts @@ -112,6 +112,13 @@ export class ApiStorage implements IStorage { } } + /** + * Get the storage type + */ + getType(): 'api' { + return 'api'; + } + /** * Load tags into cache * In our API-based system, "tags" represent briefs diff --git a/packages/tm-core/src/storage/file-storage/file-storage.ts b/packages/tm-core/src/storage/file-storage/file-storage.ts index d3fe29fd..b44039b6 100644 --- a/packages/tm-core/src/storage/file-storage/file-storage.ts +++ b/packages/tm-core/src/storage/file-storage/file-storage.ts @@ -44,6 +44,13 @@ export class FileStorage implements IStorage { await this.fileOps.cleanup(); } + /** + * Get the storage type + */ + getType(): 'file' { + return 'file'; + } + /** * Get statistics about the storage */