Fix mock DB transaction type constraint

This commit is contained in:
beatz174-bit
2025-12-02 17:42:55 +10:00
parent ba9e3f6c17
commit b286b1b881
+1 -1
View File
@@ -80,7 +80,7 @@ export const createMockDb = (data?: {
importExportLogs: new MockTable<ImportExportLog>(data?.importExportLogs ?? []),
transaction: async (
_mode: string,
...args: Array<MockTable<unknown> | (() => unknown)>
...args: Array<MockTable<{ id: string }> | (() => unknown)>
) => {
const cb = args.at(-1);
if (typeof cb === 'function') return cb();