(ctx context.Context, arg database.DeleteOldChatsParams)
| 2205 | } |
| 2206 | |
| 2207 | func (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 | |
| 2214 | func (q *querier) DeleteOldConnectionLogs(ctx context.Context, arg database.DeleteOldConnectionLogsParams) (int64, error) { |
| 2215 | if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil { |
nothing calls this directly
no test coverage detected