From 7c0e2ead068b26a6f3a1ef28f00028dd0468d118 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sat, 7 Aug 2021 18:21:06 +0200 Subject: [PATCH] Fixing mem DB --- src/backend/model/database/memory/AlbumManager.ts | 4 ++++ src/backend/model/database/memory/IndexingManager.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/backend/model/database/memory/AlbumManager.ts b/src/backend/model/database/memory/AlbumManager.ts index 08907560..a68f85db 100644 --- a/src/backend/model/database/memory/AlbumManager.ts +++ b/src/backend/model/database/memory/AlbumManager.ts @@ -3,6 +3,10 @@ import {SearchQueryDTO} from '../../../../common/entities/SearchQueryDTO'; import {IAlbumManager} from '../interfaces/IAlbumManager'; export class AlbumManager implements IAlbumManager { + onNewDataVersion(): Promise { + throw new Error('not supported by memory DB'); + } + public async onGalleryIndexUpdate(): Promise { throw new Error('not supported by memory DB'); } diff --git a/src/backend/model/database/memory/IndexingManager.ts b/src/backend/model/database/memory/IndexingManager.ts index 6637cd6a..b7555ce0 100644 --- a/src/backend/model/database/memory/IndexingManager.ts +++ b/src/backend/model/database/memory/IndexingManager.ts @@ -5,6 +5,10 @@ export class IndexingManager implements IIndexingManager { IsSavingInProgress: boolean; SavingReady: Promise; + saveToDB(scannedDirectory: ParentDirectoryDTO): Promise { + throw new Error('not supported by memory DB'); + } + indexDirectory(relativeDirectoryName: string): Promise { throw new Error('not supported by memory DB'); }