From fd0cdfe2f0350f90644a234cd6e3852bd3de32e0 Mon Sep 17 00:00:00 2001 From: abradat Date: Wed, 6 Nov 2024 12:40:41 -0800 Subject: [PATCH] fix noi tags not being saved correctly --- .../src/alcs/notice-of-intent/notice-of-intent.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/apps/alcs/src/alcs/notice-of-intent/notice-of-intent.service.ts b/services/apps/alcs/src/alcs/notice-of-intent/notice-of-intent.service.ts index 292546c21..fecbc5c52 100644 --- a/services/apps/alcs/src/alcs/notice-of-intent/notice-of-intent.service.ts +++ b/services/apps/alcs/src/alcs/notice-of-intent/notice-of-intent.service.ts @@ -426,7 +426,7 @@ export class NoticeOfIntentService { await this.repository.save(existingNoticeOfIntent); if (createDto.tags && createDto.tags.length > 0) { - createDto.tags.map(async (tag) => { + for (const tag of createDto.tags) { try { await this.noticeOfIntentTagService.addTagToNoticeOfIntent(createDto.fileNumber, tag); } catch (e) { @@ -434,7 +434,7 @@ export class NoticeOfIntentService { `Could not add tag ${tag} to application number ${createDto.fileNumber} with error: ${e.error}`, ); } - }); + } } return this.getByFileNumber(createDto.fileNumber);