diff options
| author | Adam Soltys <[email protected]> | 2024-01-23 15:22:05 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-01-23 15:22:08 -0800 |
| commit | 9c7d46dbd78e4ba217adbc9d48fbd6e91f5fad99 (patch) | |
| tree | 7637d90396c0006527c44a0e69cf6f2f2a7aa0b3 /routes/users.js | |
| parent | 05967b7d4b004860113ea44cf1b01b9135437f1e (diff) | |
| download | coinos-server-9c7d46dbd78e4ba217adbc9d48fbd6e91f5fad99.tar.gz coinos-server-9c7d46dbd78e4ba217adbc9d48fbd6e91f5fad99.zip | |
format
Diffstat (limited to 'routes/users.js')
| -rw-r--r-- | routes/users.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/routes/users.js b/routes/users.js index 69319ba2..230d46a1 100644 --- a/routes/users.js +++ b/routes/users.js @@ -71,8 +71,9 @@ export default { let p = await g(`payment:${pid}`); if (!p) continue; total += p.amount; - if (p.amount < 0) total -= (p.fee || 0) + (p.ourfee || 0) + (p.tip || 0); - else total += (p.tip || 0) + if (p.amount < 0) + total -= (p.fee || 0) + (p.ourfee || 0) + (p.tip || 0); + else total += p.tip || 0; } user.expected = total; |
