Skip to content

Commit b269f3c

Browse files
adds await keyword for async method call
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 89c01b5 commit b269f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/flight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def update_environment_by_flight_id(
4040
"""
4141
flight = await self.get_flight_by_id(flight_id)
4242
flight.environment = environment
43-
self.update_flight_by_id(flight_id, flight)
43+
await self.update_flight_by_id(flight_id, flight)
4444
return
4545

4646
@controller_exception_handler

0 commit comments

Comments
 (0)