Updated flows tree #90

Merged
romanskijdev merged 1 commits from fix-permissions into main 2026-08-04 13:06:17 +03:00
1 changed files with 4 additions and 1 deletions

View File

@ -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,