We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92de1b7 commit ae6b4e6Copy full SHA for ae6b4e6
app/operation/user.py
@@ -85,11 +85,11 @@ async def validate_user(self, db_user: User) -> UserNotificationResponse:
85
async def update_user(self, db_user: User) -> UserNotificationResponse:
86
user = await self.validate_user(db_user)
87
88
- if db_user.status in (UserStatus.active, UserStatus.on_hold):
89
- user_inbounds = await db_user.inbounds()
90
- asyncio.create_task(node_manager.update_user(user, inbounds=user_inbounds))
+ if user.status in (UserStatus.active, UserStatus.on_hold):
+ inbounds = await db_user.inbounds()
+ await node_manager.update_user(user, inbounds)
91
else:
92
- asyncio.create_task(node_manager.remove_user(user))
+ await node_manager.remove_user(user)
93
94
return user
95
0 commit comments