mirror of
https://github.com/strapi/strapi.git
synced 2026-01-04 03:03:38 +00:00
Fix findOne function in content manager controller
This commit is contained in:
parent
79f12c0051
commit
80ea276725
@ -41,11 +41,11 @@ module.exports = {
|
||||
|
||||
findOne: async(ctx) => {
|
||||
const model = ctx.params.model;
|
||||
const _id = ctx.params._id;
|
||||
const _id = ctx.params.id;
|
||||
|
||||
const entries = await User
|
||||
.find({
|
||||
id
|
||||
.findOne({
|
||||
_id
|
||||
});
|
||||
|
||||
ctx.body = entries;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user