From d5ce41a69194142e450f41e894e3a883753f50f1 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 13 Aug 2025 20:19:01 -0500 Subject: http-api: T7711: config sync method should be async This is needed due to the recent change of the underlying method _configure_op to async. --- src/services/api/rest/routers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/services/api') diff --git a/src/services/api/rest/routers.py b/src/services/api/rest/routers.py index 329d6e51f..d1383a356 100644 --- a/src/services/api/rest/routers.py +++ b/src/services/api/rest/routers.py @@ -511,12 +511,14 @@ async def configure_op( @router.post('/configure-section') -def configure_section_op( +async def configure_section_op( data: Union[ConfigSectionModel, ConfigSectionListModel, ConfigSectionTreeModel], request: Request, background_tasks: BackgroundTasks, ): - return _configure_op(data, request, background_tasks) + out = await _configure_op(data, request, background_tasks) + + return out @router.post('/retrieve') -- cgit v1.2.3