fix unresolved links on sync

This commit is contained in:
phernandez
2025-01-22 22:37:34 -06:00
parent 23922f2915
commit 9f35f8b8d2
12 changed files with 728 additions and 23 deletions
@@ -47,6 +47,7 @@ class RelationService(BaseService[RelationRepository]):
relation = RelationModel(
from_id=from_entity.id,
to_id=to_entity.id,
to_name=to_entity.title,
relation_type=rs.relation_type,
context=rs.context,
)
+1 -1
View File
@@ -177,7 +177,7 @@ class SearchService:
# Only index outgoing relations (ones defined in this file)
for rel in entity.outgoing_relations:
# Create descriptive title showing the relationship
relation_title = f"{rel.from_entity.title}{rel.to_entity.title}"
relation_title = f"{rel.from_entity.title}{rel.to_entity.title}" if rel.to_entity else f"{rel.from_entity.title}"
await self._do_index(
SearchIndexRow(