fix: corriger la signature de parole.findOne (ctx au lieu de documentId)

This commit is contained in:
2026-07-04 14:58:43 +04:00
parent 0afa9251d6
commit 4ee7ed3e5e
2 changed files with 27 additions and 1 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ module.exports = createCoreController('api::parole.parole', ({strapi}) => ({
return ctx.send(result)
},
async findOne(documentId) {
async findOne(ctx) {
const {id: documentId} = ctx.params
const parole = await strapi.documents('api::parole.parole').findOne({
documentId,
populate: ['artistes']