mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
fix ballon
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user