File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 11import { AdminCommentDTO , CreateAdminCommentDTO } from "../../types" ;
22
33interface 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 (
You can’t perform that action at this time.
0 commit comments