fix up delete query comments to match what is happening

This commit is contained in:
kim 2024-09-16 17:13:44 +01:00
commit b65fe3ff77
2 changed files with 4 additions and 4 deletions

View file

@ -256,8 +256,8 @@ func (r *relationshipDB) DeleteFollow(
deleted.AccountID = sourceAccountID
deleted.TargetAccountID = targetAccountID
// Delete all blocks either from
// account, or targeting account,
// Delete follow from origin
// account, to targeting account,
// returning the deleted models.
if _, err := r.db.NewDelete().
Model(&deleted).

View file

@ -298,8 +298,8 @@ func (r *relationshipDB) DeleteFollowRequest(
deleted.AccountID = sourceAccountID
deleted.TargetAccountID = targetAccountID
// Delete all blocks either from
// account, or targeting account,
// Delete all follow reqs either
// from account, or targeting account,
// returning the deleted models.
if _, err := r.db.NewDelete().
Model(&deleted).