dialogs: load only 20 routes at start

This commit is contained in:
muerwre 2018-12-07 10:51:11 +07:00
parent b108b1abc9
commit 09658b8126
4 changed files with 12 additions and 23 deletions

View file

@ -9,7 +9,7 @@ module.exports = async (req, res) => {
path: 'routes',
select: '_id title distance owner updated_at',
options: {
limit: 100,
limit: 20,
sort: { updated_at: -1 },
}
});