(ctx context.Context, arg database.UpsertChatDiffStatusReferenceParams)
| 8076 | } |
| 8077 | |
| 8078 | func (q *querier) UpsertChatDiffStatusReference(ctx context.Context, arg database.UpsertChatDiffStatusReferenceParams) (database.ChatDiffStatus, error) { |
| 8079 | // Authorize update on the parent chat. |
| 8080 | chat, err := q.db.GetChatByID(ctx, arg.ChatID) |
| 8081 | if err != nil { |
| 8082 | return database.ChatDiffStatus{}, err |
| 8083 | } |
| 8084 | if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil { |
| 8085 | return database.ChatDiffStatus{}, err |
| 8086 | } |
| 8087 | return q.db.UpsertChatDiffStatusReference(ctx, arg) |
| 8088 | } |
| 8089 | |
| 8090 | func (q *querier) UpsertChatExploreModelOverride(ctx context.Context, value string) error { |
| 8091 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected