[chore/bugfix] Little DB fixes (#2726)

This commit is contained in:
tobi 2024-03-06 15:40:37 +01:00 committed by GitHub
parent b22e213e15
commit 68c8fe67cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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,