Skip to content

Commit ca37053

Browse files
authored
Merge pull request #38 from teacoder-team/dev
refactor: import {
2 parents 30191d5 + b761782 commit ca37053

4 files changed

Lines changed: 0 additions & 6 deletions

File tree

prisma/generated/edge.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

prisma/generated/index.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
20.1 MB
Binary file not shown.

src/api/payment/payment.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
} from 'nestjs-yookassa'
1515
import { VatCodesEnum } from 'nestjs-yookassa/dist/interfaces/receipt-details.interface'
1616

17-
import { IS_DEV_ENV } from '@/common/utils'
1817
import { PrismaService } from '@/infra/prisma/prisma.service'
1918
import { HeleketService } from '@/libs/heleket/heleket.service'
2019

@@ -37,9 +36,6 @@ export class PaymentService {
3736
public async create(dto: InitPaymentRequest, user: User) {
3837
const { method } = dto
3938

40-
if (!IS_DEV_ENV)
41-
throw new MethodNotAllowedException('Method not allowed')
42-
4339
const payment = await this.prismaService.payment.create({
4440
data: {
4541
amount: this.SUBSCRIPTION_PRICE,

0 commit comments

Comments
 (0)