(ctx context.Context, arg database.UpdateMemoryResourceMonitorParams)
| 6979 | } |
| 6980 | |
| 6981 | func (q *querier) UpdateMemoryResourceMonitor(ctx context.Context, arg database.UpdateMemoryResourceMonitorParams) error { |
| 6982 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceWorkspaceAgentResourceMonitor); err != nil { |
| 6983 | return err |
| 6984 | } |
| 6985 | |
| 6986 | return q.db.UpdateMemoryResourceMonitor(ctx, arg) |
| 6987 | } |
| 6988 | |
| 6989 | func (q *querier) UpdateNotificationTemplateMethodByID(ctx context.Context, arg database.UpdateNotificationTemplateMethodByIDParams) (database.NotificationTemplate, error) { |
| 6990 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceNotificationTemplate); err != nil { |
nothing calls this directly
no test coverage detected