diff --git a/internal/microservices/account/repository/postgresql/postgres.go b/internal/microservices/account/repository/postgresql/postgres.go index 6a4deb0a..31762e20 100644 --- a/internal/microservices/account/repository/postgresql/postgres.go +++ b/internal/microservices/account/repository/postgresql/postgres.go @@ -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) }