Fix undefined variable 'opts' in getSidebarCategoriesT function (#31815)

The function was trying to use 'opts.TeamID' but 'opts' was not defined in the function scope. Changed it to use the 'teamId' parameter which is properly defined in the function signature.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
Этот коммит содержится в:
Jesse Hallam
2025-06-19 22:27:28 -03:00
коммит произвёл GitHub
родитель dcc72c4c61
Коммит 968550d275

Просмотреть файл

@@ -568,7 +568,7 @@ func (s SqlChannelStore) getSidebarCategoriesT(db sqlxExecutor, userId, teamId s
}
}
if _, err := s.completePopulatingCategoriesT(db, userId, opts.TeamID, oc.Categories); err != nil {
if _, err := s.completePopulatingCategoriesT(db, userId, teamId, oc.Categories); err != nil {
return nil, err
}