MCPcopy Create free account
hub / github.com/coder/coder / DeleteOldChats

Method DeleteOldChats

coderd/database/dbauthz/dbauthz.go:2207–2212  ·  view source on GitHub ↗
(ctx context.Context, arg database.DeleteOldChatsParams)

Source from the content-addressed store, hash-verified

2205}
2206
2207func (q *querier) DeleteOldChats(ctx context.Context, arg database.DeleteOldChatsParams) (int64, error) {
2208 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil {
2209 return 0, err
2210 }
2211 return q.db.DeleteOldChats(ctx, arg)
2212}
2213
2214func (q *querier) DeleteOldConnectionLogs(ctx context.Context, arg database.DeleteOldConnectionLogsParams) (int64, error) {
2215 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
DeleteOldChatsMethod · 0.65

Tested by

no test coverage detected