mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +00:00
refactor: controllers and models to adapt them to the previous version of my-links
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ export default class UsersController {
|
||||
nickName,
|
||||
avatarUrl,
|
||||
token,
|
||||
providerType: 'google',
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user