✏️ Fix notification typo

This commit is contained in:
LittleSheep 2025-02-08 11:15:58 +08:00
parent 41a5dbe64a
commit b105e43d50

View File

@ -76,7 +76,7 @@ func MakeTransaction(amount float64, remark string, payer, payee *models.Wallet)
Topic: "wallet.transaction.new", Topic: "wallet.transaction.new",
Title: fmt.Sprintf("Receipt #%d", transaction.ID), Title: fmt.Sprintf("Receipt #%d", transaction.ID),
Subtitle: transaction.Remark, Subtitle: transaction.Remark,
Body: fmt.Sprintf("%.2f SRC added from your wallet. Your new balance is %.2f", amount, payee.Balance.InexactFloat64()), Body: fmt.Sprintf("%.2f SRC added to your wallet. Your new balance is %.2f", amount, payee.Balance.InexactFloat64()),
Metadata: map[string]any{ Metadata: map[string]any{
"id": transaction.ID, "id": transaction.ID,
"amount": amount, "amount": amount,