lastViewed bugfix findOne

This commit is contained in:
j-weissen 2022-10-18 08:12:31 +02:00
parent 7068ae402e
commit 4091f6c8f5

View file

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