From 497c23d12ca9eba7ab25c1406db42f506342059b Mon Sep 17 00:00:00 2001 From: Sarathlal Sarangadharan Date: Fri, 19 Apr 2024 11:55:33 +0100 Subject: [PATCH] TD-4057: Limited the characters to 3000 to findwise --- WebAPI/LearningHub.Nhs.Services/CatalogueService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/WebAPI/LearningHub.Nhs.Services/CatalogueService.cs b/WebAPI/LearningHub.Nhs.Services/CatalogueService.cs index f9c26859d..c34cc4b9f 100644 --- a/WebAPI/LearningHub.Nhs.Services/CatalogueService.cs +++ b/WebAPI/LearningHub.Nhs.Services/CatalogueService.cs @@ -259,6 +259,7 @@ public async Task CreateCatalogueAsync(int userId, if (cnv != null) { var searchModel = this.mapper.Map(cnv); + searchModel.Description = searchModel.Description.Substring(0, 2995) + "

"; await this.findwiseApiFacade.AddOrReplaceAsync(new List { searchModel }); }