pull/171/head
Aevann 2023-07-12 14:59:21 +03:00
parent a0f3866193
commit cbd23b53d9
1 changed files with 1 additions and 0 deletions

View File

@ -382,6 +382,7 @@ def transfer_currency(v:User, username:str, currency_name:Literal['coins', 'mars
else:
raise ValueError(f"Invalid currency '{currency_name}' got when transferring {amount} from {v.id} to {receiver.id}")
g.db.add(receiver)
g.db.flush()
if GIFT_NOTIF_ID: send_repeatable_notification(GIFT_NOTIF_ID, log_message)
send_repeatable_notification(receiver.id, notif_text)
g.db.add(v)