mirror of
https://github.com/strapi/strapi.git
synced 2025-11-11 07:39:16 +00:00
Docs fix type singleType findOne (#8764)
* fix: typo find instead of findone for singleType Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com> * refactor: remove query obj for single type Signed-off-by: Fadhil Ahmad <fadzbobby95@gmail.com>
This commit is contained in:
parent
57d956fb87
commit
b84aa2f056
@ -343,7 +343,7 @@ module.exports = {
|
|||||||
model: 'restaurant',
|
model: 'restaurant',
|
||||||
// if you are using a plugin's model you will have to add the `plugin` key (plugin: 'users-permissions')
|
// if you are using a plugin's model you will have to add the `plugin` key (plugin: 'users-permissions')
|
||||||
});
|
});
|
||||||
return this.findOne({ id: entry.id });
|
return this.find();
|
||||||
}
|
}
|
||||||
|
|
||||||
return entry;
|
return entry;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user