Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
fix: deposit api
Browse files Browse the repository at this point in the history
  • Loading branch information
beohoang98 committed Jul 4, 2020
1 parent db7f7e3 commit 601ef1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/server/src/modules/admin/admin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export class AdminService {
amount: amount,
bankType: BankTypeEnum.LOCAL,
isDebtPay: false,
isRemitterCharge: false,
});

await runner.manager.increment(
Expand All @@ -146,6 +147,7 @@ export class AdminService {
return transaction;
} catch (e) {
await runner.rollbackTransaction();
throw e;
} finally {
await runner.release();
}
Expand Down

1 comment on commit 601ef1e

@vercel
Copy link

@vercel vercel bot commented on 601ef1e Jul 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.