Skip to content

Commit

Permalink
fix noi tags not being saved correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Abradat committed Nov 6, 2024
1 parent b76b2bc commit fd0cdfe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,15 +426,15 @@ 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) {
this.logger.error(
`Could not add tag ${tag} to application number ${createDto.fileNumber} with error: ${e.error}`,
);
}
});
}
}

return this.getByFileNumber(createDto.fileNumber);
Expand Down

0 comments on commit fd0cdfe

Please sign in to comment.