[fix] Fix user.count_registration_tickets

This commit is contained in:
Jimmy 2021-03-04 15:34:06 -08:00
parent b72dfdabf8
commit 189c2ec75f
2 changed files with 1 additions and 2 deletions

View file

@ -348,7 +348,7 @@ class User < ApplicationRecord
def count_registration_tickets(conference)
count = 0
for ticket_purchase in current_user.ticket_purchases.by_conference(@conference)
for ticket_purchase in ticket_purchases.by_conference(conference)
for physical_ticket in ticket_purchase.physical_tickets
if physical_ticket.ticket.registration_ticket
count += 1