Register User Endpoint needs id for relations instead of documentId #22205
Labels
issue: bug
Issue reporting a bug
severity: medium
If it breaks the basic use of the product but can be worked around
source: plugin:users-permissions
Source is plugin/users-permissions package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
version: 5
Bug report
Required System information
Node.js version: 18.20.4
NPM version: 10.7.0
Strapi version: 5.3.0
Database: sqlite
Operating system: Mac OS / homebrew
Is your project Javascript or Typescript: JS
Describe the bug
Using auth.register on Rest API we passed a documentId of a relation to connect ist while user is registered.
We get a sqLite Database Error. When we pass Id instead of documentId everything works fine.
Steps to reproduce the behavior
Expected behavior
We expected that the documentId is needed for connecting relations on register user. Instead the Id is needed for now.
The text was updated successfully, but these errors were encountered: