update dispatcher config reference on save

This commit is contained in:
Josh Hawkins 2026-04-06 17:17:36 -05:00
parent 9e0e4162f9
commit 7c0e5a8f17

View File

@ -694,6 +694,9 @@ def config_set(request: Request, body: AppConfigSetBody):
if request.app.stats_emitter is not None:
request.app.stats_emitter.config = config
if request.app.dispatcher is not None:
request.app.dispatcher.config = config
if body.update_topic:
if body.update_topic.startswith("config/cameras/"):
_, _, camera, field = body.update_topic.split("/")