notification: change notification data

This commit is contained in:
behruz-dev
2025-10-30 16:41:30 +05:00
parent 21b868c06f
commit 22a54480a4
3 changed files with 5 additions and 3 deletions

View File

@@ -72,7 +72,8 @@ class ExpenceCreateSerializer(serializers.ModelSerializer):
expence.counterparty.save()
body = f"""{user.full_name} {expence.price} {expence.currency.upper()}... \n screen: /monitoring"""
data = {
"screen": "/monitoring"
"screen": "/monitoring",
"type": "expence",
}
notify_user(user=user, title="Tasdiqlang yoki rad eting", body=body, data=data)
cash_transaction.save()