Skip to content

Commit d5ce41a

Browse files
committed
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.
1 parent 471441d commit d5ce41a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/services/api/rest/routers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,12 +511,14 @@ async def configure_op(
511511

512512

513513
@router.post('/configure-section')
514-
def configure_section_op(
514+
async def configure_section_op(
515515
data: Union[ConfigSectionModel, ConfigSectionListModel, ConfigSectionTreeModel],
516516
request: Request,
517517
background_tasks: BackgroundTasks,
518518
):
519-
return _configure_op(data, request, background_tasks)
519+
out = await _configure_op(data, request, background_tasks)
520+
521+
return out
520522

521523

522524
@router.post('/retrieve')

0 commit comments

Comments
 (0)