mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
fixes in attribute persistence + WIP on display of promoted attrs
This commit is contained in:
@@ -62,6 +62,12 @@ async function updateEntity(entity) {
|
||||
|
||||
delete clone.jsonContent;
|
||||
|
||||
for (const key in clone) {
|
||||
if (clone[key] !== null && typeof clone[key] === 'object') {
|
||||
clone[key] = JSON.stringify(clone[key]);
|
||||
}
|
||||
}
|
||||
|
||||
await sql.transactional(async () => {
|
||||
await sql.replace(entity.constructor.tableName, clone);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user