mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 14:43:24 +00:00
feat: show collection's favorité links first
This commit is contained in:
@@ -26,7 +26,7 @@ export class CollectionService {
|
|||||||
return await Collection.query()
|
return await Collection.query()
|
||||||
.where('author_id', context.auth.user!.id)
|
.where('author_id', context.auth.user!.id)
|
||||||
.orderBy('created_at')
|
.orderBy('created_at')
|
||||||
.preload('links');
|
.preload('links', (q) => q.orderBy('favorite', 'desc'));
|
||||||
}
|
}
|
||||||
|
|
||||||
async getTotalCollectionsCount() {
|
async getTotalCollectionsCount() {
|
||||||
|
|||||||
Reference in New Issue
Block a user