refactor: controllers and models to adapt them to the previous version of my-links

This commit is contained in:
Sonny
2024-05-24 23:54:43 +02:00
committed by Sonny
parent 31b4f22772
commit b28499a69a
19 changed files with 113 additions and 85 deletions

View File

@@ -120,6 +120,7 @@ export default class CollectionsController {
async getCollectionsByAuthorId(authorId: User['id']) {
return await Collection.query()
.where('author_id', authorId)
.orderBy('created_at')
.preload('links');
}

View File

@@ -49,6 +49,7 @@ export default class UsersController {
nickName,
avatarUrl,
token,
providerType: 'google',
}
);