fix: transaction controller
This commit is contained in:
parent
38f24a1480
commit
5ef41a82dc
|
@ -116,13 +116,15 @@ export class TransactionController {
|
|||
|
||||
@Get('deposit-return')
|
||||
async findDepositReturn(@Query('page') page: number, @Request() req) {
|
||||
const data = await this.transactionService.getAllDepositReturnFromUser(
|
||||
const [data, count] =
|
||||
await this.transactionService.getAllDepositReturnFromUser(
|
||||
req.user.userId,
|
||||
page,
|
||||
);
|
||||
|
||||
return {
|
||||
...data,
|
||||
data,
|
||||
count,
|
||||
statusCode: HttpStatus.OK,
|
||||
message: 'success',
|
||||
};
|
||||
|
@ -133,13 +135,15 @@ export class TransactionController {
|
|||
@Query('page') page: number,
|
||||
@Request() req,
|
||||
) {
|
||||
const data = await this.transactionService.getAllDepositReturnToUser(
|
||||
const [data, count] =
|
||||
await this.transactionService.getAllDepositReturnToUser(
|
||||
req.user.userId,
|
||||
page,
|
||||
);
|
||||
|
||||
return {
|
||||
...data,
|
||||
data,
|
||||
count,
|
||||
statusCode: HttpStatus.OK,
|
||||
message: 'success',
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user