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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user