mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
label service refactoring + rename of doInTransaction to transactional
This commit is contained in:
@@ -50,7 +50,7 @@ async function updateEntity(entity) {
|
||||
|
||||
delete clone.jsonContent;
|
||||
|
||||
await sql.doInTransaction(async () => {
|
||||
await sql.transactional(async () => {
|
||||
await sql.replace(entity.constructor.tableName, clone);
|
||||
|
||||
const primaryKey = entity[entity.constructor.primaryKeyName];
|
||||
|
||||
Reference in New Issue
Block a user