sorting changed
This commit is contained in:
parent
3786a803a6
commit
18b2d01c23
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue