mirror of
https://github.com/sigmasternchen/threadule
synced 2025-03-15 08:09:01 +00:00
feat: added tweets to get account endpoint
This commit is contained in:
parent
211f7b42a8
commit
847467e676
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ func (d *Data) GetAccountsByUser(user *models.User) ([]models.Account, error) {
|
|||
var accounts []models.Account
|
||||
err := d.db.
|
||||
Preload("Threads").
|
||||
Preload("Threads.Tweets").
|
||||
Where("user_id = ?", user.ID).
|
||||
Where("access_token IS NOT NULL").
|
||||
Find(&accounts).
|
||||
|
|
Loading…
Reference in a new issue