Fix typo in controllers.md (#7721)

The default SingleType service doesn't have an findOne() function only find().
See https://github.com/strapi/strapi/issues/7718 for details

Signed-off-by: Amir Lellouche <lalosher@gmail.com>
This commit is contained in:
Amir 2020-09-04 14:58:46 +03:00 committed by GitHub
parent b3b335c090
commit f8437184ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 });
},
};