Skip to content

Build your personal knowledge base with Trilium Notes

fix(server/tasks): becca not updating on task creation

Elian Doran0baa80454489
diff --git a/src/becca/entities/btask.ts b/src/becca/entities/btask.ts
index 85bcca46af..e04f9b8ab0 100644
--- a/src/becca/entities/btask.ts
+++ b/src/becca/entities/btask.ts
@@ -63,6 +63,10 @@ export default class BTask extends AbstractBeccaEntity<BOption> {
super.beforeSaving();
this.utcDateModified = date_utils.utcNowDateTime();
+
+ if (this.taskId) {
+ this.becca.tasks[this.taskId] = this;
+ }
}
getPojo() {