fix: use documentId

This commit is contained in:
2026-04-28 12:30:29 +04:00
parent 7df8ec1df2
commit 7a168f54ff
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = createCoreController('api::artiste.artiste', ({strapi}) => ({
}
const user = await strapi.documents('plugin::users-permissions.user').findOne({
documentId: "__TODO__"
documentId: body.data.user.documentId
})
if (!user) {