mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
fix unresolved links on sync
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user