From 3b2b7664dc0978c03d9c89dbe927697df728044f Mon Sep 17 00:00:00 2001 From: akhrarovsaid Date: Wed, 20 Nov 2024 15:30:58 -0500 Subject: [PATCH] chore: include changes overwritten by conflict resolution --- .../plugin-search/src/utilities/syncDocAsSearchIndex.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/plugin-search/src/utilities/syncDocAsSearchIndex.ts b/packages/plugin-search/src/utilities/syncDocAsSearchIndex.ts index 4463ec135f4..b567c0f26e2 100644 --- a/packages/plugin-search/src/utilities/syncDocAsSearchIndex.ts +++ b/packages/plugin-search/src/utilities/syncDocAsSearchIndex.ts @@ -114,7 +114,10 @@ export const syncDocAsSearchIndex = async ({ where: { id: { in: duplicativeDocIDs } }, }) } catch (err: unknown) { - payload.logger.error(`Error deleting duplicative ${searchSlug} documents.`) + payload.logger.error({ + err, + msg: `Error deleting duplicative ${searchSlug} documents.`, + }) } } @@ -135,7 +138,7 @@ export const syncDocAsSearchIndex = async ({ req, }) } catch (err: unknown) { - payload.logger.error(`Error updating ${searchSlug} document.`) + payload.logger.error({ err, msg: `Error updating ${searchSlug} document.` }) } } if (deleteDrafts && status === 'draft') {