Skip to content

Commit

Permalink
chore: include changes overwritten by conflict resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
akhrarovsaid committed Nov 20, 2024
1 parent e84eac6 commit 3b2b766
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/plugin-search/src/utilities/syncDocAsSearchIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
})
}
}

Expand All @@ -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') {
Expand Down

0 comments on commit 3b2b766

Please sign in to comment.