mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-24 15:58:50 +01: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 is not set, fetch from database.
|
||||||
account.Move, err = a.state.DB.GetMoveByID(
|
account.Move, err = a.state.DB.GetMoveByID(
|
||||||
ctx,
|
ctx,
|
||||||
account.MovedToURI,
|
account.MoveID,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errs.Appendf("error populating move: %w", err)
|
errs.Appendf("error populating move: %w", err)
|
||||||
|
@ -382,7 +382,7 @@ func (r *relationshipDB) DeleteAccountFollowRequests(ctx context.Context, accoun
|
|||||||
if _, err := r.db.
|
if _, err := r.db.
|
||||||
NewSelect().
|
NewSelect().
|
||||||
Column("id").
|
Column("id").
|
||||||
Table("follow_requestss").
|
Table("follow_requests").
|
||||||
WhereOr("? = ? OR ? = ?",
|
WhereOr("? = ? OR ? = ?",
|
||||||
bun.Ident("account_id"),
|
bun.Ident("account_id"),
|
||||||
accountID,
|
accountID,
|
||||||
|
Loading…
Reference in New Issue
Block a user