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>
This commit is contained in:
Jesse Hallam 2025-06-19 22:27:28 -03:00 committed by GitHub
parent dcc72c4c61
commit 968550d275
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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