zarinpal payment

This commit is contained in:
2026-01-18 19:30:41 +03:30
parent 6e8e4c7cf5
commit 87da6a8c10
4 changed files with 25 additions and 18 deletions
@@ -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);
}