Skip to content

Commit b724acd

Browse files
committed
lint code
1 parent 8582d70 commit b724acd

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

backend/typescript/graphql/resolvers/adminCommentsResolvers.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const adminCommentResolvers = {
1010
_parent: undefined,
1111
{ applicantRecordId }: { applicantRecordId: string },
1212
): Promise<AdminCommentDTO[]> => {
13-
const adminComments = await adminCommentService.getAdminCommentsByApplicantRecordId(applicantRecordId);
13+
const adminComments =
14+
await adminCommentService.getAdminCommentsByApplicantRecordId(
15+
applicantRecordId,
16+
);
1417
return adminComments;
1518
},
1619
adminCommentById: async (

backend/typescript/graphql/types/adminCommentsType.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ const adminCommentsType = gql`
1717
}
1818
1919
extend type Query {
20-
adminCommentsByApplicantRecordId(applicantRecordId: String!): [AdminCommentDTO!]!
20+
adminCommentsByApplicantRecordId(
21+
applicantRecordId: String!
22+
): [AdminCommentDTO!]!
2123
adminCommentById(id: String!): AdminCommentDTO!
2224
}
2325

backend/typescript/services/implementations/adminCommentService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ class AdminCommentService implements IAdminCommentService {
6565
};
6666
} catch (error: unknown) {
6767
Logger.error(
68-
`Failed to get admin comment by id = ${id}. Reason = ${getErrorMessage(error)}`,
68+
`Failed to get admin comment by id = ${id}. Reason = ${getErrorMessage(
69+
error,
70+
)}`,
6971
);
7072
throw error;
7173
}

backend/typescript/services/interfaces/adminCommentService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { AdminCommentDTO, CreateAdminCommentDTO } from "../../types";
22

33
interface IAdminCommentService {
4-
getAdminCommentsByApplicantRecordId(reviewedApplicantRecordId: string): Promise<AdminCommentDTO[]>;
4+
getAdminCommentsByApplicantRecordId(
5+
reviewedApplicantRecordId: string,
6+
): Promise<AdminCommentDTO[]>;
57
getAdminCommentById(id: string): Promise<AdminCommentDTO>;
68
createAdminComment(content: CreateAdminCommentDTO): Promise<AdminCommentDTO>;
79
updateAdminComment(

0 commit comments

Comments
 (0)