Skip to content

Commit

Permalink
Update team api key model
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Nov 22, 2024
1 parent 414a8a2 commit c733ba5
Show file tree
Hide file tree
Showing 18 changed files with 342 additions and 130 deletions.
2 changes: 1 addition & 1 deletion packages/shared/pkg/db/apiKeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (db *DB) GetTeamAuth(ctx context.Context, apiKey string) (*models.Team, *mo
TeamAPIKey.
Query().
WithTeam().
Where(teamapikey.ID(apiKey)).
Where(teamapikey.APIKey(apiKey)).
QueryTeam().
WithTeamTier().
Only(ctx)
Expand Down
8 changes: 4 additions & 4 deletions packages/shared/pkg/models/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions packages/shared/pkg/models/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 77 additions & 23 deletions packages/shared/pkg/models/mutation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/shared/pkg/models/runtime.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions packages/shared/pkg/models/team/team.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/shared/pkg/models/team_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c733ba5

Please sign in to comment.