lastViewed bugfix findOne
This commit is contained in:
parent
7068ae402e
commit
4091f6c8f5
1 changed files with 3 additions and 0 deletions
|
|
@ -50,6 +50,9 @@ module.exports = createCoreController(noteUid, ({strapi}) => ({
|
||||||
lastViewed: Date.now()
|
lastViewed: Date.now()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
entry = await strapi.entityService.findOne(noteUid, noteId, {
|
||||||
|
populate: ['owners'],
|
||||||
|
});
|
||||||
return JSON.stringify(entry);
|
return JSON.stringify(entry);
|
||||||
} else {
|
} else {
|
||||||
ctx.response.status = 403;
|
ctx.response.status = 403;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue