mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
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:
parent
b3b335c090
commit
f8437184ca
@ -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 });
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user