-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALCS-2345 Backend implementation #1946
Conversation
@ApiOAuth2(config.get<string[]>('KEYCLOAK.SCOPES')) | ||
@UseGuards(RolesGuard) | ||
export class NoticeOfIntentTagController { | ||
private logger = new Logger(NoticeOfIntentTagController.name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like this logger is never used.
|
||
@Injectable() | ||
export class NoticeOfIntentTagService { | ||
private logger = new Logger(NoticeOfIntentTagService.name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same with this one.
throw new ServiceNotFoundException(`Notice of Intent not found with number ${fileNumber}`); | ||
} | ||
return noi.tags && noi.tags.length > 0 | ||
? noi.tags.sort((a, b) => a.auditCreatedAt.getTime() - b.auditCreatedAt.getTime()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment I made on #1945: I generally feel sorting should be done on database.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Backend implementation for NOI Tags