Skip to content

Commit

Permalink
fix(server): fix charge reward calculation error (#1269)
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatal authored Jun 16, 2023
1 parent be02bf7 commit 78c1d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/account/account.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class AccountController {
{ sort: { amount: -1 } },
)

const realAmount = reward ? reward.amount + order.amount : order.amount
const realAmount = reward ? reward.reward + order.amount : order.amount

const ret = await db
.collection<Account>('Account')
Expand Down

0 comments on commit 78c1d79

Please sign in to comment.