fix: enhance insufficient funds message and update subscription controls logic
This commit is contained in:
@@ -80,11 +80,7 @@ class UserService:
|
||||
|
||||
user = await self.user_repository.get_user_by_id(session, user_id)
|
||||
|
||||
if not rw_user:
|
||||
return user
|
||||
|
||||
link = utils.get_subscription_link(rw_user.short_uuid)
|
||||
|
||||
link = utils.get_subscription_link(rw_user.short_uuid) if rw_user else None
|
||||
user = await self.user_repository.update_user_link(session, user_id, link)
|
||||
|
||||
return user
|
||||
|
||||
Reference in New Issue
Block a user