mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-26 09:02:11 +03:00
PUT /api/providers/[id] unconditionally called enableRateLimitProtection(id) whenever the request body included rateLimitOverrides, even null. Since EditConnectionModal.tsx sends rateLimitOverrides on every connection save regardless of whether the operator touched that section, saving any connection silently started queuing its requests through Bottleneck while the DB (rate_limit_protection column) and the dashboard toggle both still showed the feature off. Only (re)enable the in-memory limiter when updated.rateLimitProtection is actually true (mapped from the persisted DB row), and explicitly disable it otherwise so runtime state can never drift ahead of the DB.