From acd31a91546c09592df30bfc11532e238b8da195 Mon Sep 17 00:00:00 2001 From: James Magahern Date: Sun, 23 Feb 2025 16:49:30 -0800 Subject: [PATCH] FavoritesStore: fix explicit store path --- backend/src/FavoritesStore.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/FavoritesStore.ts b/backend/src/FavoritesStore.ts index 736cdbc..bdfce9c 100644 --- a/backend/src/FavoritesStore.ts +++ b/backend/src/FavoritesStore.ts @@ -25,7 +25,7 @@ export class FavoritesStore { } // In production (in a container), use /app/data - if (process.env.NODE_ENV === 'production') { + else if (process.env.NODE_ENV === 'production') { storePath = path.resolve('/app/data'); } @@ -33,7 +33,9 @@ export class FavoritesStore { console.error('Failed to create intermediate directory:', err); }); - return path.join(storePath, storeFilename); + const fullPath = path.join(storePath, storeFilename); + console.log("Favorites store path: " + fullPath); + return fullPath; } private async loadFavorites() {