summaryrefslogtreecommitdiff
path: root/internal/db/bundb/application.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-04-16 13:25:47 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-16 13:25:47 +0200
commit6de5717d7f8666c8a47cbdd6d9fd3b292be6fce4 (patch)
treef7353c1b29494e1b9d64cd5d7e8f2e3bcc8885c7 /internal/db/bundb/application.go
parent[feature/performance] Store account stats in separate table (#2831) (diff)
downloadgotosocial-6de5717d7f8666c8a47cbdd6d9fd3b292be6fce4.tar.xz
[bugfix] fix get all tokens (#2841)
Diffstat (limited to 'internal/db/bundb/application.go')
-rw-r--r--internal/db/bundb/application.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/application.go b/internal/db/bundb/application.go
index c2a957c93..00f5e0622 100644
--- a/internal/db/bundb/application.go
+++ b/internal/db/bundb/application.go
@@ -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