Correct "get_participant_by_user" -> "for_user"

This commit is contained in:
Drew DeVault 2019-08-24 09:07:41 +09:00
parent 2f4969d504
commit e978ebc006
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ def enable_notifications(owner, name):
if not tracker:
abort(404)
participant = get_participant_by_user(current_user)
participant = get_participant_for_user(current_user)
sub = (TicketSubscription.query
.filter(TicketSubscription.tracker_id == tracker.id)
.filter(TicketSubscription.ticket_id == None)
@ -140,7 +140,7 @@ def disable_notifications(owner, name):
if not tracker:
abort(404)
participant = get_participant_by_user(current_user)
participant = get_participant_for_user(current_user)
sub = (TicketSubscription.query
.filter(TicketSubscription.tracker_id == tracker.id)
.filter(TicketSubscription.ticket_id == None)