mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-24 16:33:32 -06:00
[bugfix] fix get all tokens (#2841)
This commit is contained in:
parent
3cceed11b2
commit
6de5717d7f
2 changed files with 9 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ func (a *applicationDB) GetAllTokens(ctx context.Context) ([]*gtsmodel.Token, er
|
|||
// Perform database query scanning
|
||||
// the remaining (uncached) token IDs.
|
||||
if err := a.db.NewSelect().
|
||||
Model(tokens).
|
||||
Model(&tokens).
|
||||
Where("? IN (?)", bun.Ident("id"), bun.In(uncached)).
|
||||
Scan(ctx); err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue