Skip to content

Commit 007e738

Browse files
author
Maggie Chen
committed
changed naming of one input variable
1 parent b724acd commit 007e738

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/typescript/services/implementations/adminCommentService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ class AdminCommentService implements IAdminCommentService {
2525
/* eslint-disable class-methods-use-this */
2626

2727
async getAdminCommentsByApplicantRecordId(
28-
reviewedApplicantRecordId: string,
28+
applicantRecordId: string,
2929
): Promise<AdminCommentDTO[]> {
3030
let adminComments: AdminComment[] = [];
3131
let adminCommentDTOs: Array<AdminCommentDTO> = [];
3232
try {
3333
adminComments = await AdminComment.findAll({
34-
where: { applicantRecordId: reviewedApplicantRecordId },
34+
where: { applicantRecordId },
3535
});
3636
adminCommentDTOs = adminComments.map((adminComment) => ({
3737
id: adminComment.id,
@@ -43,7 +43,7 @@ class AdminCommentService implements IAdminCommentService {
4343
}));
4444
} catch (error: unknown) {
4545
Logger.error(
46-
`Failed to get admin comments by reviewedApplicantRecordId = ${reviewedApplicantRecordId}. Reason = ${getErrorMessage(
46+
`Failed to get admin comments by reviewedApplicantRecordId = ${applicantRecordId}. Reason = ${getErrorMessage(
4747
error,
4848
)}`,
4949
);

0 commit comments

Comments
 (0)