Skip to content

chore: reproduce postgres bug when updating currently logged-in user #12220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Apr 25, 2025

Following scenario:

  1. update user while currently logged in with said user
  2. that user has an afterChange hook, which creates a new document
  3. that document has a relation back to said user
  4. the create operation in the afterChange hook will freeze when trying to insert that relationship: https://github.com/payloadcms/payload/blob/fix/user-bug/packages/drizzle/src/upsertRow/index.ts#L192

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

Successfully merging this pull request may close these issues.

1 participant