Fix findOne function in content manager controller

This commit is contained in:
Pierre Burgy 2017-05-03 17:51:11 +02:00
parent 79f12c0051
commit 80ea276725

View File

@ -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;