From 18a88d4b12796ce23605357845fadf4569a6db91 Mon Sep 17 00:00:00 2001 From: plockwood Date: Fri, 18 Oct 2024 12:50:45 +0100 Subject: [PATCH] Fixes after dev test --- .../CreateTransfersCompleteProjectsCommandHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dfe.Academies.Academisation.Service/Commands/CompleteProject/CreateTransfersCompleteProjectsCommandHandler.cs b/Dfe.Academies.Academisation.Service/Commands/CompleteProject/CreateTransfersCompleteProjectsCommandHandler.cs index 899011fe8..026116431 100644 --- a/Dfe.Academies.Academisation.Service/Commands/CompleteProject/CreateTransfersCompleteProjectsCommandHandler.cs +++ b/Dfe.Academies.Academisation.Service/Commands/CompleteProject/CreateTransfersCompleteProjectsCommandHandler.cs @@ -118,7 +118,7 @@ public async Task Handle(CreateTransfersCompleteProjectsCommand r var errorResponse = await response.Content.ReadFromJsonAsync(); responseMessage = errorResponse.GetAllErrors(); - _logger.LogInformation("Error In completing conversion project with project urn: {project} for transfering academy: {urn} due to Status code {code} and Complete Validation Errors:" + responseMessage, transferProject.Urn, response.StatusCode); + _logger.LogInformation("Error In completing conversion project with project urn: {project} for transfering academy: {urn} due to Status code {code} and Complete Validation Errors:" + responseMessage, transferProject.Urn, establishment.Urn, response.StatusCode); } transferProject.SetProjectSentToComplete(transferringAcademy.Ukprn); @@ -127,7 +127,7 @@ public async Task Handle(CreateTransfersCompleteProjectsCommand r await _transferProjectRepository.UnitOfWork.SaveChangesAsync(cancellationToken); - _completeTransmissionLogRepository.Insert(CompleteTransmissionLog.CreateTransferProjectLog(transferProject.Id, transferringAcademy.Id, completeProjectId, true, responseMessage, _dateTimeProvider.Now)); + _completeTransmissionLogRepository.Insert(CompleteTransmissionLog.CreateTransferProjectLog(transferProject.Id, transferringAcademy.Id, completeProjectId, response.IsSuccessStatusCode, responseMessage, _dateTimeProvider.Now)); await _completeTransmissionLogRepository.UnitOfWork.SaveChangesAsync(cancellationToken); }