payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
27.67k stars 1.72k forks source link

fix(next): properly sets doc id types when using postgres #9381

Closed jacobsfletch closed 1 day ago

jacobsfletch commented 1 day ago

Fixes #9351. When using Postgres, doc ids were being treated as a string as opposed to a number within the admin panel. This led to issues for anything relying on the docID from context, such as the join field not properly populating initial data when creating new documents, etc.

github-actions[bot] commented 1 day ago

🚀 This is included in version v3.0.2