From e6798b4be8bbeb59cc849194177577ad4df4d281 Mon Sep 17 00:00:00 2001 From: chatenium Date: Tue, 7 Apr 2026 11:37:29 +0200 Subject: [PATCH] Mock database hotfix --- src/mocks/storage/database.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mocks/storage/database.ts b/src/mocks/storage/database.ts index c103aab..faea0a5 100644 --- a/src/mocks/storage/database.ts +++ b/src/mocks/storage/database.ts @@ -4,6 +4,9 @@ export class DatabaseMock implements DatabaseAPI { database: { [collection: string]: { [key: string]: string } } = {}; set(collection: string, key: string, value: any) { + if (!this.database[collection]) { + this.database[collection] = {}; + } this.database[collection][key] = JSON.stringify(value); }