690322:2123 Fixing Deployment Errors
CI / CD Pipeline / build (push) Failing after 7m56s
CI / CD Pipeline / release (push) Has been skipped
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
2026-03-22 21:23:08 +07:00
parent 5dad7ab7c1
commit 4dc14aba5b
28 changed files with 324 additions and 67 deletions
@@ -13,7 +13,6 @@ import {
ApiTags,
ApiOperation,
ApiBearerAuth,
ApiQuery,
} from '@nestjs/swagger';
import { ContractService } from './contract.service.js';
import { CreateContractDto } from './dto/create-contract.dto.js';
@@ -26,7 +26,6 @@ import { CreateCorrespondenceDto } from './dto/create-correspondence.dto';
import { UpdateCorrespondenceDto } from './dto/update-correspondence.dto';
import { AddReferenceDto } from './dto/add-reference.dto';
import { SearchCorrespondenceDto } from './dto/search-correspondence.dto';
import { DeepPartial } from 'typeorm';
// Services
import { DocumentNumberingService } from '../document-numbering/services/document-numbering.service';
@@ -506,7 +505,7 @@ export class CorrespondenceService {
: undefined;
// 3. Update Correspondence Entity if needed
const correspondenceUpdate: any = {};
const correspondenceUpdate: Record<string, unknown> = {};
if (updateDto.disciplineId)
correspondenceUpdate.disciplineId = updateDto.disciplineId;
if (updResolvedProjectId)
@@ -519,7 +518,7 @@ export class CorrespondenceService {
}
// 4. Update Revision Entity
const revisionUpdate: any = {};
const revisionUpdate: Record<string, unknown> = {};
if (updateDto.subject) revisionUpdate.subject = updateDto.subject;
if (updateDto.body) revisionUpdate.body = updateDto.body;
if (updateDto.remarks) revisionUpdate.remarks = updateDto.remarks;
@@ -1,4 +1,4 @@
import { Entity, Column, PrimaryColumn, ManyToOne, JoinColumn } from 'typeorm';
import { Entity, PrimaryColumn, ManyToOne, JoinColumn } from 'typeorm';
import { Correspondence } from './correspondence.entity';
import { Organization } from '../../organization/entities/organization.entity';
@@ -116,10 +116,6 @@ export class DocumentNumberingController {
year: dto.year,
customTokens: dto.customTokens,
});
// console.log(
// '[DocumentNumberingController] Preview result:',
// JSON.stringify(result)
// );
return result;
}
}
@@ -51,9 +51,6 @@ export class FormatService {
tokens,
options.sequence
);
// console.log(
// `[FormatService] Generated: "${previewNumber}" | Template: "${template}" | isDefault: ${isDefault}`
// );
return { previewNumber, isDefault };
}
@@ -1,4 +1,4 @@
import { Injectable, Logger } from '@nestjs/common';
import { Injectable } from '@nestjs/common';
import { Counter, Gauge, Histogram } from 'prom-client';
import { InjectMetric } from '@willsoto/nestjs-prometheus';
@@ -1,4 +1,4 @@
import { Injectable, Logger, NotFoundException } from '@nestjs/common';
import { Injectable, Logger } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { DocumentNumberFormat } from '../entities/document-number-format.entity';
@@ -1,4 +1,4 @@
import { IsString, IsNotEmpty, IsOptional, IsInt } from 'class-validator';
import { IsString, IsNotEmpty, IsOptional } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class CreateTagDto {
@@ -1,4 +1,4 @@
import { IsInt, IsString, IsNotEmpty, IsOptional } from 'class-validator';
import { IsInt, IsString, IsNotEmpty } from 'class-validator';
export class SaveNumberFormatDto {
@IsInt()
@@ -4,7 +4,6 @@ import {
Controller,
Get,
Post,
Put,
Body,
Patch,
Param,
@@ -4,7 +4,6 @@ import {
IsOptional,
IsEnum,
IsNotEmpty,
IsUrl,
} from 'class-validator';
import { NotificationType } from '../entities/notification.entity';
@@ -1,7 +1,7 @@
import { Injectable, Logger } from '@nestjs/common';
import { Cron, CronExpression } from '@nestjs/schedule';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository, LessThan } from 'typeorm';
import { Repository } from 'typeorm';
import { Notification } from './entities/notification.entity';
@Injectable()
@@ -72,9 +72,6 @@ export class OrganizationService {
const [data, total] = await queryBuilder.getManyAndCount();
// Debug logging
// console.log(`[OrganizationService] Found ${total} organizations`);
return {
data,
meta: {
@@ -5,7 +5,7 @@ import {
Logger,
} from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository, Like } from 'typeorm';
import { Repository } from 'typeorm';
// Entities
import { Project } from './entities/project.entity';
@@ -1,4 +1,4 @@
import { IsInt, IsNotEmpty, IsOptional, ValidateIf } from 'class-validator';
import { IsInt, IsNotEmpty, IsOptional } from 'class-validator';
export class AssignRoleDto {
@IsInt()