FavoritesStore: fix explicit store path
This commit is contained in:
@@ -25,7 +25,7 @@ export class FavoritesStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// In production (in a container), use /app/data
|
// 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');
|
storePath = path.resolve('/app/data');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,7 +33,9 @@ export class FavoritesStore {
|
|||||||
console.error('Failed to create intermediate directory:', err);
|
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() {
|
private async loadFavorites() {
|
||||||
|
|||||||
Reference in New Issue
Block a user