fix ballon

This commit is contained in:
Peter Maquiran
2024-09-04 10:58:26 +01:00
parent 100d64f799
commit 0f3096b25e
11 changed files with 123 additions and 34 deletions
@@ -101,6 +101,10 @@ export class DexieRepository<T, R> implements IDexieRepository<T, R> {
const updatedCount = await this.table.update(id, dataValidation.data);
return ok(updatedCount);
} catch (error) {
Logger.error(`dexie.js failed to update into ${this.table.name}, invalid data`, {
data: updatedDocument,
id,
});
return err(new Error('Failed to update document: ' + error.message));
}
} else {