Skip to content

Commit

Permalink
fix little problem
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyKomarovCoder committed Nov 28, 2023
1 parent 72928fa commit f11a312
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (r *AccountRep) DeleteAccount(ctx context.Context, userID uuid.UUID, accoun
return fmt.Errorf("[repo] failed to delete from UserAccount table: %w", err)
}

_, err = tx.Exec(ctx, AccountDelete, 2)
_, err = tx.Exec(ctx, AccountDelete, accountID)
if err != nil {
return fmt.Errorf("[repo] failed to delete account %s, %w", AccountDelete, err)
}
Expand Down

0 comments on commit f11a312

Please sign in to comment.