zarinpal payment
This commit is contained in:
@@ -2,6 +2,7 @@ import {
|
||||
Controller, Get, Post, Body,
|
||||
Param,
|
||||
UseGuards,
|
||||
Query,
|
||||
} from '@nestjs/common';
|
||||
import { PaymentService } from '../services/payments.service';
|
||||
import {
|
||||
@@ -41,7 +42,7 @@ export class PaymentController {
|
||||
@ApiBearerAuth()
|
||||
@Get('public/payments')
|
||||
@ApiOperation({ summary: 'get all payments as admin' })
|
||||
findAllByUser(@UserId() userId: string, @Body() dto: FindPaymentsDto) {
|
||||
findAllByUser(@UserId() userId: string, @Query() dto: FindPaymentsDto) {
|
||||
return this.paymentsService.findAllByUser(dto, userId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user