[bug]: PostgreSQL database expects numeric IDs for the up_users
table, instead of a string documentId
#80
Labels
issue: bug
Issue reporting a bug
severity: medium
If it breaks the basic use of the product but can be worked around
status: to be confirmed
The issue needs to be reproduced or confirmed by a team member
Bug Description
Issue Description
When using the Strapi Client to update user profiles, the client passes string IDs to the Strapi API, but the PostgreSQL database expects numeric IDs for the
up_users
table. This causes the following error in the Strapi server:Root Cause
update()
method expects a stringdocumentId
, as documented in the official Strapi documentation.vkdx5e0javerx298j9a98r4n
) to the update method, which is being passed directly to the database as a parameter for an integer column.Steps to Reproduce
strapiClient().collection('users')
to get the users collectionupdate(documentId, payload)
with a string documentIdExpected Behavior
Version
1.3.0
Operating System
MacOS
Runtime Environment
Node.js
Logs
Media
No response
Confirmation Checklist
The text was updated successfully, but these errors were encountered: