260318:1401 Fix UUID #05
Build and Deploy / deploy (push) Failing after 11m8s

This commit is contained in:
admin
2026-03-18 14:01:32 +07:00
parent ba642e7e42
commit e5769269a8
37 changed files with 460 additions and 328 deletions
@@ -267,12 +267,17 @@ export class DocumentNumberingService {
// --- Admin / Legacy ---
async getTemplates() {
return this.formatRepo.find();
return this.formatRepo.find({
relations: ['project', 'correspondenceType'],
});
}
async getTemplatesByProject(projectId: number | string) {
const internalId = await this.resolveProjectId(projectId);
return this.formatRepo.find({ where: { projectId: internalId } });
return this.formatRepo.find({
where: { projectId: internalId },
relations: ['project', 'correspondenceType'],
});
}
async saveTemplate(dto: any) {