Skip to content

Build your personal knowledge base with Trilium Notes

fix(build): not all entity types taken into consideration

Elian Doran5fc8100c5d11
diff --git a/apps/client/src/server_types.ts b/apps/client/src/server_types.ts
index df6e1a7fc3..2aa5214052 100644
--- a/apps/client/src/server_types.ts
+++ b/apps/client/src/server_types.ts
@@ -8,7 +8,7 @@ interface Entity {
export interface EntityChange {
id?: number | null;
noteId?: string;
- entityName: EntityRowNames;
+ entityName: EntityType;
entityId: string;
entity?: Entity;
positions?: Record<string, number>;
@@ -22,3 +22,5 @@ export interface EntityChange {
changeId?: string | null;
instanceId?: string | null;
}
+
+export type EntityType = "notes" | "branches" | "attributes" | "note_reordering" | "revisions" | "options" | "attachments" | "blobs" | "etapi_tokens" | "note_embeddings";