(ctx context.Context, arg database.UpsertUserChatPersonalModelOverrideParams)
| 8356 | } |
| 8357 | |
| 8358 | func (q *querier) UpsertUserChatPersonalModelOverride(ctx context.Context, arg database.UpsertUserChatPersonalModelOverrideParams) error { |
| 8359 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
| 8360 | if err != nil { |
| 8361 | return err |
| 8362 | } |
| 8363 | if err := q.authorizeContext(ctx, policy.ActionUpdatePersonal, u); err != nil { |
| 8364 | return err |
| 8365 | } |
| 8366 | return q.db.UpsertUserChatPersonalModelOverride(ctx, arg) |
| 8367 | } |
| 8368 | |
| 8369 | func (q *querier) UpsertWebpushVAPIDKeys(ctx context.Context, arg database.UpsertWebpushVAPIDKeysParams) error { |
| 8370 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected