Rename team DB methods to encourage lighter-weight usage (#35572)

For #35357.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

No changes file as this is a zero-functionality-change refactor.
Performance improvements are in their own PR, which includes a changes
file.

- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)

## Testing

- [x] Added/updated automated tests

- [ ] QA'd all new/changed functionality manually
This commit is contained in:
Ian Littman
2025-11-12 08:09:49 -06:00
committed by GitHub
parent 4e97263881
commit 545bc6c692
41 changed files with 91 additions and 91 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func RequiresEnrollOTAAuthentication(ctx context.Context, ds fleet.AndroidDatast
return noTeamIdPEnabled, nil
}
tm, err := ds.Team(ctx, *secret.TeamID)
tm, err := ds.TeamWithExtras(ctx, *secret.TeamID)
if err != nil {
return false, ctxerr.Wrap(ctx, err, "get team for settings")
}