Skip to content

fix: deduplicate OG image upserts#862

Open
KaannKara wants to merge 1 commit into
Merit-Systems:mainfrom
KaannKara:fix/ogimage-deduplicate-upsert
Open

fix: deduplicate OG image upserts#862
KaannKara wants to merge 1 commit into
Merit-Systems:mainfrom
KaannKara:fix/ogimage-deduplicate-upsert

Conversation

@KaannKara
Copy link
Copy Markdown

Fixes #287.

Summary

  • deduplicate scraped OG images by URL before running batched upserts
  • add a regression test for duplicate og:image URLs within the same origin

Tests

  • pnpm --filter @x402scan/app test:run src/services/db/resources/origin.test.ts
  • pnpm --dir apps/scan exec eslint src/services/db/resources/origin.test.ts --max-warnings 0
  • pnpm --filter @x402scan/app format:check
  • git diff --check

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 12, 2026

Someone is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Unable to register resource due to OgImage unique constraint conflict

1 participant