diff --git a/sources/packages/backend/apps/api/src/services/application-bulk-withdrawal/application-bulk-withdrawal-import-text.service.ts b/sources/packages/backend/apps/api/src/services/application-bulk-withdrawal/application-bulk-withdrawal-import-text.service.ts index a68422e241..7f71d088f4 100644 --- a/sources/packages/backend/apps/api/src/services/application-bulk-withdrawal/application-bulk-withdrawal-import-text.service.ts +++ b/sources/packages/backend/apps/api/src/services/application-bulk-withdrawal/application-bulk-withdrawal-import-text.service.ts @@ -177,10 +177,11 @@ export class ApplicationWithdrawalImportTextService { textValidation.textModel.applicationNumber; validationModel.withdrawalDate = textValidation.textModel.withdrawalDate; validationModel.applicationFound = false; - if (applicationData) { + if ( + applicationData && + textValidation.textModel.sin === applicationData.sin + ) { validationModel.applicationFound = true; - validationModel.studentSINMatch = - textValidation.textModel.sin === applicationData.sin; validationModel.isArchived = applicationData.isArchived; validationModel.applicationStatus = applicationData.applicationStatus; validationModel.hasPreviouslyBeenWithdrawn = diff --git a/sources/packages/backend/apps/api/src/services/application-bulk-withdrawal/application-bulk-withdrawal-validation.models.ts b/sources/packages/backend/apps/api/src/services/application-bulk-withdrawal/application-bulk-withdrawal-validation.models.ts index da7a946882..65d8c46022 100644 --- a/sources/packages/backend/apps/api/src/services/application-bulk-withdrawal/application-bulk-withdrawal-validation.models.ts +++ b/sources/packages/backend/apps/api/src/services/application-bulk-withdrawal/application-bulk-withdrawal-validation.models.ts @@ -66,20 +66,6 @@ export class ApplicationBulkWithdrawalValidationModel { ), }) applicationFound: boolean; - /** - * Valid SIN. - */ - @ValidateIf( - (object: ApplicationBulkWithdrawalValidationModel) => - object.applicationFound, - ) - @IsIn([true], { - message: "The record was not found and will be skipped.", - context: ValidationContext.CreateWarning( - ApplicationWithdrawalValidationWarnings.NoMatchingRecordFound, - ), - }) - studentSINMatch?: boolean; /** * Application Status. */