Fix TypeScript compilation errors
- Remove unused imports (IsString, Queue) - Remove unused variables in services.service.ts - Add skipLibCheck to worker tsconfig - Set declaration: false in API tsconfig to avoid type portability errors
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsString, IsNotEmpty, IsInt, Min, IsOptional, IsUUID } from 'class-validator';
|
||||
import { IsNotEmpty, IsInt, Min, IsOptional, IsUUID } from 'class-validator';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class CreateOrderDto {
|
||||
|
||||
@@ -51,7 +51,7 @@ export class ServicesService {
|
||||
}
|
||||
|
||||
async suspend(id: string, tenantId: string) {
|
||||
const service = await this.findOne(id, tenantId);
|
||||
await this.findOne(id, tenantId);
|
||||
|
||||
return this.prisma.service.update({
|
||||
where: { id },
|
||||
@@ -63,7 +63,7 @@ export class ServicesService {
|
||||
}
|
||||
|
||||
async terminate(id: string, tenantId: string) {
|
||||
const service = await this.findOne(id, tenantId);
|
||||
await this.findOne(id, tenantId);
|
||||
|
||||
return this.prisma.service.update({
|
||||
where: { id },
|
||||
|
||||
Reference in New Issue
Block a user