Commit 21cb538
authored
fix(worker): only count successful payments toward total spend (#31)
Failed and refunded charges were being summed into the 'spent on Nitro' total, inflating the figure (sometimes 4x). Filter on Discord's Payment.status enum to keep only status=1 (SUCCESSFUL).
Closes dumpus-app/dumpus-app#261.1 parent 9307f07 commit 21cb538
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
240 | 244 | | |
| 245 | + | |
| 246 | + | |
241 | 247 | | |
242 | 248 | | |
243 | 249 | | |
| |||
0 commit comments