From eb7704de34dcdf93352c306085a2f800fd942cef Mon Sep 17 00:00:00 2001 From: Tom Bruyneel <102589380+tom-b-iodigital@users.noreply.github.com> Date: Fri, 17 May 2024 15:37:32 +0200 Subject: [PATCH] Remove delete images --- .../Jobs/WebsitePageIndexingJob.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backoffice/ConversationalSearchPlatform.BackOffice/Jobs/WebsitePageIndexingJob.cs b/src/backoffice/ConversationalSearchPlatform.BackOffice/Jobs/WebsitePageIndexingJob.cs index 2542cef..3725d87 100644 --- a/src/backoffice/ConversationalSearchPlatform.BackOffice/Jobs/WebsitePageIndexingJob.cs +++ b/src/backoffice/ConversationalSearchPlatform.BackOffice/Jobs/WebsitePageIndexingJob.cs @@ -189,7 +189,7 @@ private async Task DeletePagesAsync(Guid indexableId) private async Task DeleteImagesAsync(Guid indexable) { - var recordsLeftToDelete = true; + /*var recordsLeftToDelete = true; var request = GetImagesByInternalIdForDeletion.Request(new GetImagesByInternalIdForDeletion.GetImagesByInternalIdForDeletionQueryParams(indexable.ToString())); @@ -214,7 +214,7 @@ private async Task DeleteImagesAsync(Guid indexable) await _vectorizationService.BulkDeleteAsync(IndexingConstants.ImageClass, imageIdsToDelete); } - } while (recordsLeftToDelete); + } while (recordsLeftToDelete);*/ } private async Task CreateEntry(ApplicationDbContext db, string tenantId, WebsitePageIndexingDetails details) @@ -711,4 +711,4 @@ private async Task GetImageCollection(Guid websitePageId, Scrap return new ImageCollection(internalId, imageResults); } -} \ No newline at end of file +}