(ctx context.Context, arg database.DeleteOldConnectionLogsParams)
| 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 { |
| 2216 | return 0, err |
| 2217 | } |
| 2218 | return q.db.DeleteOldConnectionLogs(ctx, arg) |
| 2219 | } |
| 2220 | |
| 2221 | func (q *querier) DeleteOldNotificationMessages(ctx context.Context) error { |
| 2222 | if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceNotificationMessage); err != nil { |
nothing calls this directly
no test coverage detected