Skip to content

Conversation

@madisoncarter1234
Copy link
Contributor

Summary

  • Change create to connectOrCreate for ogImages in the create branch of upsertOrigin
  • This allows multiple origins to share the same OG image URL without violating unique constraints
  • Aligns the create branch behavior with the update branch which already uses upsert

Fixes #287

Test plan

  • Register Resource A with URL that has a specific OG image
  • Register Resource B from a different origin that shares the same OG image URL
  • Verify both registrations succeed without unique constraint errors

Change create to connectOrCreate for ogImages in the create branch of upsertOrigin. This allows multiple origins to share the same OG image URL without violating unique constraints.

Fixes Merit-Systems#287
@vercel
Copy link
Contributor

vercel bot commented Dec 5, 2025

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

A member of the Team first needs to authorize it.

@shafu0x
Copy link
Contributor

shafu0x commented Jan 14, 2026

did you test this?

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

2 participants