Commit 491d365
committed
fix(worker): skip Discord Orb payments in total spend
A user reported "$297 spent" on an account that had spent €0 of real
money. Their export's payments.json contained four status==1 entries,
all with currency "discord_orb":
Dark Roses Bundle 11 000 orbs
Kitsune Dream Bundle 7 600 orbs
Nevermore Bundle 11 000 orbs
Orbs Apprentice Badge 120 orbs
------------
29 720 orbs
The status filter from #31 doesn't catch these — the orb purchases are
genuinely SUCCESSFUL, just not denominated in fiat. The worker stored
amount=29720 with currency="discord_orb", and the frontend sums
payment_amount as cents regardless of currency, yielding $297.20.
Orbs are a virtual currency Discord awards via Quests / events; users
don't buy them, so cosmetic purchases settled in orbs shouldn't count
toward "money spent on Discord." Skip these rows in the same loop as
the status filter.
After the fix, the same package yields $0 spent (the three real-money
rows are USD "Temporary Authorization -- Nitro Monthly" entries with
status 2/5, which were already excluded).1 parent c558b90 commit 491d365
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
260 | 268 | | |
261 | 269 | | |
262 | 270 | | |
| 271 | + | |
| 272 | + | |
263 | 273 | | |
264 | 274 | | |
265 | 275 | | |
| |||
0 commit comments