sorting changed

This commit is contained in:
j-weissen 2022-09-26 12:36:02 +02:00
parent 3786a803a6
commit 18b2d01c23

View file

@ -22,7 +22,9 @@ module.exports = createCoreController('api::note.note', ({strapi}) => ({
id: userId id: userId
} }
}, },
sort: 'lastViewed' sort: {
lastViewed: 'desc'
}
}); });
return JSON.stringify(entries); return JSON.stringify(entries);
}, },