From 68c8fe67ccb5abffe0a4cfb0ca74789468e27ea3 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:40:37 +0100 Subject: [PATCH] [chore/bugfix] Little DB fixes (#2726) --- internal/db/bundb/account.go | 2 +- internal/db/bundb/relationship_follow_req.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/db/bundb/account.go b/internal/db/bundb/account.go index 4d078e68d..f7b0a0d4f 100644 --- a/internal/db/bundb/account.go +++ b/internal/db/bundb/account.go @@ -308,7 +308,7 @@ func (a *accountDB) PopulateAccount(ctx context.Context, account *gtsmodel.Accou // Account move is not set, fetch from database. account.Move, err = a.state.DB.GetMoveByID( ctx, - account.MovedToURI, + account.MoveID, ) if err != nil { errs.Appendf("error populating move: %w", err) diff --git a/internal/db/bundb/relationship_follow_req.go b/internal/db/bundb/relationship_follow_req.go index 690b97cf0..6fd5eefba 100644 --- a/internal/db/bundb/relationship_follow_req.go +++ b/internal/db/bundb/relationship_follow_req.go @@ -382,7 +382,7 @@ func (r *relationshipDB) DeleteAccountFollowRequests(ctx context.Context, accoun if _, err := r.db. NewSelect(). Column("id"). - Table("follow_requestss"). + Table("follow_requests"). WhereOr("? = ? OR ? = ?", bun.Ident("account_id"), accountID,