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

Method SoftDeleteContextFileMessages

coderd/database/dbauthz/dbauthz.go:6435–6444  ·  view source on GitHub ↗
(ctx context.Context, chatID uuid.UUID)

Source from the content-addressed store, hash-verified

6433}
6434
6435func (q *querier) SoftDeleteContextFileMessages(ctx context.Context, chatID uuid.UUID) error {
6436 chat, err := q.db.GetChatByID(ctx, chatID)
6437 if err != nil {
6438 return err
6439 }
6440 if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil {
6441 return err
6442 }
6443 return q.db.SoftDeleteContextFileMessages(ctx, chatID)
6444}
6445
6446func (q *querier) SoftDeletePriorWorkspaceAgents(ctx context.Context, arg database.SoftDeletePriorWorkspaceAgentsParams) error {
6447 // Internal bookkeeping called from wsbuilder.Builder.Build inside the

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
GetChatByIDMethod · 0.65

Tested by

no test coverage detected