(ctx context.Context, arg database.DeleteChatDebugDataByChatIDParams)
| 1971 | } |
| 1972 | |
| 1973 | func (q *querier) DeleteChatDebugDataByChatID(ctx context.Context, arg database.DeleteChatDebugDataByChatIDParams) (int64, error) { |
| 1974 | chat, err := q.db.GetChatByID(ctx, arg.ChatID) |
| 1975 | if err != nil { |
| 1976 | return 0, err |
| 1977 | } |
| 1978 | if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil { |
| 1979 | return 0, err |
| 1980 | } |
| 1981 | return q.db.DeleteChatDebugDataByChatID(ctx, arg) |
| 1982 | } |
| 1983 | |
| 1984 | func (q *querier) DeleteChatModelConfigByID(ctx context.Context, id uuid.UUID) error { |
| 1985 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected