fix: use documentId
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user