MCPcopy Index your code
hub / github.com/coder/coder / DeleteChatDebugDataByChatID

Method DeleteChatDebugDataByChatID

coderd/database/dbauthz/dbauthz.go:1973–1982  ·  view source on GitHub ↗
(ctx context.Context, arg database.DeleteChatDebugDataByChatIDParams)

Source from the content-addressed store, hash-verified

1971}
1972
1973func (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
1984func (q *querier) DeleteChatModelConfigByID(ctx context.Context, id uuid.UUID) error {
1985 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
GetChatByIDMethod · 0.65

Tested by

no test coverage detected