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

Method DeleteOldChatFiles

coderd/database/dbauthz/dbauthz.go:2200–2205  ·  view source on GitHub ↗
(ctx context.Context, arg database.DeleteOldChatFilesParams)

Source from the content-addressed store, hash-verified

2198}
2199
2200func (q *querier) DeleteOldChatFiles(ctx context.Context, arg database.DeleteOldChatFilesParams) (int64, error) {
2201 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil {
2202 return 0, err
2203 }
2204 return q.db.DeleteOldChatFiles(ctx, arg)
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 {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
DeleteOldChatFilesMethod · 0.65

Tested by

no test coverage detected