From 2ed0a372b356022aae2eeeb94e58e297195adeb1 Mon Sep 17 00:00:00 2001 From: plockwood Date: Fri, 1 Nov 2024 17:09:38 +0000 Subject: [PATCH] await fix --- .../FormAMatProject/CreateFormAMatProjectsCommandHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dfe.Academies.Academisation.Service/Commands/FormAMatProject/CreateFormAMatProjectsCommandHandler.cs b/Dfe.Academies.Academisation.Service/Commands/FormAMatProject/CreateFormAMatProjectsCommandHandler.cs index 2a4ca9f01..db070583f 100644 --- a/Dfe.Academies.Academisation.Service/Commands/FormAMatProject/CreateFormAMatProjectsCommandHandler.cs +++ b/Dfe.Academies.Academisation.Service/Commands/FormAMatProject/CreateFormAMatProjectsCommandHandler.cs @@ -41,7 +41,7 @@ public async Task Handle(CreateFormAMatProjectsCommand request, { // create formAMat formAMat = FormAMatProject.Create(conversionProject.Details.NameOfTrust, conversionProject.Details.ApplicationReferenceNumber, _dateTimeProvider.Now); - _formAMatProjectRepository.CreateFormAMatProjectWithTrustReferenceNumber(formAMat); + await _formAMatProjectRepository.CreateFormAMatProjectWithTrustReferenceNumber(formAMat); await _formAMatProjectRepository.UnitOfWork.SaveChangesAsync(cancellationToken); }