diff --git a/docs/v3.x/concepts/controllers.md b/docs/v3.x/concepts/controllers.md index da51be2cfa..847342db54 100644 --- a/docs/v3.x/concepts/controllers.md +++ b/docs/v3.x/concepts/controllers.md @@ -233,7 +233,7 @@ module.exports = { */ async find(ctx) { - const entity = await strapi.services.restaurant.findOne(); + const entity = await strapi.services.restaurant.find(); return sanitizeEntity(entity, { model: strapi.models.restaurant }); }, };