mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-21 19:26:40 +00:00
[chore/bugfix] Little DB fixes (#2726)
This commit is contained in:
parent
b22e213e15
commit
68c8fe67cc
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue