(ctx context.Context, arg database.UpdateEncryptedUserAIProviderKeyParams)
| 6882 | } |
| 6883 | |
| 6884 | func (q *querier) UpdateEncryptedUserAIProviderKey(ctx context.Context, arg database.UpdateEncryptedUserAIProviderKeyParams) (database.UserAiProviderKey, error) { |
| 6885 | // Encrypted user-owned provider keys can be rewritten on any row so |
| 6886 | // dbcrypt rotation can move every key to a new digest. This is a |
| 6887 | // maintenance path, not the self-service user key API. |
| 6888 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceAIProvider); err != nil { |
| 6889 | return database.UserAiProviderKey{}, err |
| 6890 | } |
| 6891 | return q.db.UpdateEncryptedUserAIProviderKey(ctx, arg) |
| 6892 | } |
| 6893 | |
| 6894 | func (q *querier) UpdateExternalAuthLink(ctx context.Context, arg database.UpdateExternalAuthLinkParams) (database.ExternalAuthLink, error) { |
| 6895 | fetch := func(ctx context.Context, arg database.UpdateExternalAuthLinkParams) (database.ExternalAuthLink, error) { |
nothing calls this directly
no test coverage detected