-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unable to update a related collection within an afterChange hook when using postgres #10222
Comments
CCoffie
added
status: needs-triage
Possible bug which hasn't been reproduced yet
validate-reproduction
labels
Dec 28, 2024
Hey @CCoffie, Can you try passing
|
Ah, yep that fixed it! Thanks for the help. Should the |
@CCoffie Generally yes, wherever you have access to a req you want to pass it in. It's highly recommended at least. |
github-actions
bot
removed
the
status: needs-triage
Possible bug which hasn't been reproduced yet
label
Dec 28, 2024
This issue has been automatically locked. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the Bug
There seems to be a bug within the postgres implementation that's not allowing afterChange hooks to update other collection items. I created a test project that shows the bug. The test project works when I switch to using mongo as the backend but when using postgres, the action times out.
Link to the code that reproduces this issue
https://github.com/CCoffie/payload-bug
Reproduction Steps
npm run dev
. (I currently have a docker compose up command for postgres running as a predev command)It seems to freezing on this section of the hook:
Which area(s) are affected? (Select all that apply)
db-postgres, area: core
Environment Info
The text was updated successfully, but these errors were encountered: