chore: update configuration and improve schema imports
- Updated biome.json to include "graphql.d.ts" in the ignored files list. - Updated subproject commit reference in epess-database to the latest version. - Removed unused script from package.json and streamlined module file extensions in tsconfig.json. - Consolidated exclude patterns in tsconfig.build.json for clarity. - Refactored imports across multiple schema files for consistency and improved readability. - Enhanced various schema files by ensuring proper import order and removing redundant code. - Improved error handling and data integrity checks in several service and schema files.
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
import {
|
||||
Controller,
|
||||
Get,
|
||||
Post,
|
||||
Put,
|
||||
Delete,
|
||||
Param,
|
||||
Body,
|
||||
Headers,
|
||||
} from '@nestjs/common'
|
||||
import { PayosService } from './payos.service'
|
||||
import { ApiTags, ApiOperation } from '@nestjs/swagger'
|
||||
import { Body, Controller, Delete, Get, Headers, Param, Post, Put } from '@nestjs/common'
|
||||
import { ApiOperation, ApiTags } from '@nestjs/swagger'
|
||||
import { WebhookType } from '@payos/node/lib/type'
|
||||
import { PayosService } from './payos.service'
|
||||
|
||||
@ApiTags('Payos')
|
||||
@Controller('payos')
|
||||
@@ -34,6 +25,7 @@ export class PayosController {
|
||||
// test create payment url
|
||||
@Post('create-payment-url')
|
||||
@ApiOperation({ summary: 'Test create payment url' })
|
||||
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
||||
async createPaymentURL(@Body() body: any) {
|
||||
return this.payosService.createPaymentURL(body)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user