Skip to content

Commit

Permalink
fix(server): update account updateAt (#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Jan 11, 2024
1 parent 60ad016 commit 1b75bac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/account/account.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class AccountController {
.collection<Account>('Account')
.findOneAndUpdate(
{ _id: order.accountId },
{ $inc: { balance: realAmount } },
{ $inc: { balance: realAmount }, $set: { updatedAt: new Date() } },
{ session, returnDocument: 'after' },
)

Expand Down
2 changes: 1 addition & 1 deletion server/src/billing/billing-payment-task.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class BillingPaymentTaskService {
.collection<Account>('Account')
.updateOne(
{ _id: account._id },
{ $inc: { balance: -amount } },
{ $inc: { balance: -amount }, $set: { updatedAt: new Date() } },
{ session },
)

Expand Down

0 comments on commit 1b75bac

Please sign in to comment.