From 008d75c5b1449498e81c3e0dbcc0b22da9101131 Mon Sep 17 00:00:00 2001 From: devinleighsmith Date: Wed, 25 Dec 2024 11:50:20 -0800 Subject: [PATCH] fix for document template uploads. --- source/backend/api/Services/FormDocumentService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/backend/api/Services/FormDocumentService.cs b/source/backend/api/Services/FormDocumentService.cs index 0d7b173410..b95ece2431 100644 --- a/source/backend/api/Services/FormDocumentService.cs +++ b/source/backend/api/Services/FormDocumentService.cs @@ -89,7 +89,7 @@ public async Task UploadFormDocumentTemplate if (uploadResult.DocumentExternalResponse.Status == ExternalResponseStatus.Success) { - currentFormType.DocumentId = uploadRequest.DocumentId; + currentFormType.DocumentId = uploadResult.Document.Id; var updatedFormType = _formTypeRepository.SetFormTypeDocument(currentFormType); _formTypeRepository.CommitTransaction();