diff --git a/core/db/methods/user_hierarchy.go b/core/db/methods/user_hierarchy.go index 3e53763..f2e1ac2 100644 --- a/core/db/methods/user_hierarchy.go +++ b/core/db/methods/user_hierarchy.go @@ -289,6 +289,7 @@ func (u *UserHierarchyDB) GetHierarchiesWithRelations(ctx context.Context, opts "uh.topic_category_id", "uh.topic_id", "uh.priority", + "uh.target_system", "uh.created_at", "uh.updated_at", "sub.id", "sub.full_name", "sub.username", @@ -350,7 +351,9 @@ func (u *UserHierarchyDB) GetHierarchiesWithRelations(ctx context.Context, opts err := rows.Scan( &h.ID, &h.SubordinateID, &h.ApproverID, &h.DepartmentID, - &h.TopicCategoryID, &h.TopicID, &h.Priority, &h.CreatedAt, &h.UpdatedAt, + &h.TopicCategoryID, &h.TopicID, &h.Priority, + &h.TargetSystem, + &h.CreatedAt, &h.UpdatedAt, &h.Subordinate.ID, &h.Subordinate.FullName, &h.Subordinate.Username, &h.Approver.ID, &h.Approver.FullName, &h.Approver.Username, &h.Department.ID, &h.Department.Name,