Skip to content

Commit 69cd484

Browse files
authored
Merge pull request #4661 from jestabro/async-config-sync
http-api: T7711: config sync method should be async
2 parents 896e167 + d5ce41a commit 69cd484

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)