Skip to content

Commit 490d79a

Browse files
DTO type name change
1 parent 3b70eeb commit 490d79a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

backend/typescript/graphql/resolvers/reviewedApplicantRecordResolver.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ReviewedApplicantRecordService from "../../services/implementations/revie
22
import {
33
ReviewedApplicantRecordDTO,
44
CreateReviewedApplicantRecordDTO,
5-
DeleteReviewedApplicantRecord
5+
DeleteReviewedApplicantRecordDTO
66
} from "../../types";
77
import { getErrorMessage } from "../../utilities/errorUtils";
88

@@ -34,7 +34,7 @@ const reviewedApplicantRecordResolvers = {
3434

3535
deleteReviewedApplicantRecord: async (
3636
_parent: undefined,
37-
args: { input: DeleteReviewedApplicantRecord },
37+
args: { input: DeleteReviewedApplicantRecordDTO },
3838
): Promise<ReviewedApplicantRecordDTO> => {
3939
try {
4040
return await reviewedApplicantRecordService.deleteReviewedApplicantRecord(
@@ -47,7 +47,7 @@ const reviewedApplicantRecordResolvers = {
4747

4848
bulkDeleteReviewedApplicantRecord: async (
4949
_parent: undefined,
50-
args: { inputs: DeleteReviewedApplicantRecord[] },
50+
args: { inputs: DeleteReviewedApplicantRecordDTO[] },
5151
): Promise<ReviewedApplicantRecordDTO[]> => {
5252
try {
5353
return await reviewedApplicantRecordService.bulkDeleteReviewedApplicantRecord(

backend/typescript/services/implementations/reviewedApplicantRecordService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ReviewedApplicantRecord from "../../models/reviewedApplicantRecord.model"
33
import {
44
ReviewedApplicantRecordDTO,
55
CreateReviewedApplicantRecordDTO,
6-
DeleteReviewedApplicantRecord
6+
DeleteReviewedApplicantRecordDTO
77
} from "../../types";
88

99
import IReviewApplicantRecordService from "../interfaces/IReviewedApplicantRecordService";
@@ -33,7 +33,7 @@ class ReviewedApplicantRecordService implements IReviewApplicantRecordService {
3333
);
3434
}
3535

36-
async deleteReviewedApplicantRecord(deleteReviewedApplicantRecord: DeleteReviewedApplicantRecord): Promise<ReviewedApplicantRecordDTO> {
36+
async deleteReviewedApplicantRecord(deleteReviewedApplicantRecord: DeleteReviewedApplicantRecordDTO): Promise<ReviewedApplicantRecordDTO> {
3737
const applicantRecordId = deleteReviewedApplicantRecord.applicantRecordId;
3838
const reviewerId = deleteReviewedApplicantRecord.reviewerId;
3939
const record = await ReviewedApplicantRecord.findOne({ where: { applicantRecordId, reviewerId } });
@@ -46,7 +46,7 @@ class ReviewedApplicantRecordService implements IReviewApplicantRecordService {
4646
return record.toJSON() as ReviewedApplicantRecordDTO;
4747
}
4848

49-
async bulkDeleteReviewedApplicantRecord(deleteReviewedApplicantRecords: DeleteReviewedApplicantRecord[]): Promise<ReviewedApplicantRecordDTO[]> {
49+
async bulkDeleteReviewedApplicantRecord(deleteReviewedApplicantRecords: DeleteReviewedApplicantRecordDTO[]): Promise<ReviewedApplicantRecordDTO[]> {
5050
const deletedRecords = await sequelize.transaction(async (t) => {
5151
const records = await Promise.all(
5252
deleteReviewedApplicantRecords.map(({ applicantRecordId, reviewerId }) =>

backend/typescript/services/interfaces/IReviewedApplicantRecordService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
ReviewedApplicantRecordDTO,
33
CreateReviewedApplicantRecordDTO,
4-
DeleteReviewedApplicantRecord
4+
DeleteReviewedApplicantRecordDTO
55
} from "../../types";
66

77
interface IReviewApplicantRecordService {
@@ -27,15 +27,15 @@ interface IReviewApplicantRecordService {
2727
* @Param reviewerId the ID of the reviewer
2828
*/
2929
deleteReviewedApplicantRecord(
30-
deleteReviewedApplicantRecord: DeleteReviewedApplicantRecord
30+
deleteReviewedApplicantRecord: DeleteReviewedApplicantRecordDTO
3131
): Promise<ReviewedApplicantRecordDTO>;
3232

3333
/**
3434
* Deletes multiple reviewed applicant record entries in bulk
3535
* @Param deleteReviewedApplicantRecord array of data to delete reviewed applicant records
3636
*/
3737
bulkDeleteReviewedApplicantRecord(
38-
deleteReviewedApplicantRecords: DeleteReviewedApplicantRecord[]
38+
deleteReviewedApplicantRecords: DeleteReviewedApplicantRecordDTO[]
3939
): Promise<ReviewedApplicantRecordDTO[]>;
4040
}
4141

0 commit comments

Comments
 (0)