@@ -87,22 +87,22 @@ def initialize(registrations:)
8787
8888 def self . list_for_sponsorship ( sponsorship )
8989 source = TitoSource . find_by! ( sponsorship :, conference : sponsorship . conference )
90- list_for_source_id ( sponsorship . conference . tito_slug , source . tito_source_id , sponsorship :)
90+ list_for_source_id ( sponsorship . conference . tito_slug , source . code , sponsorship :)
9191 rescue PaginationNotSupported
9292 raise PaginationNotSupported , "Pagination not supported, encountered for #{ sponsorship . name . inspect } on event=#{ sponsorship . conference . slug . inspect } "
9393 end
9494
95- def self . list_for_source_id ( tito_event , source_id , sponsorship : nil )
95+ def self . list_for_source_id ( tito_event , source , sponsorship : nil )
9696 Collection . from_tito_registration_list (
9797 TitoApi . new . list_registrations (
9898 tito_event ,
9999 'expand' => 'tickets' ,
100- 'search[source]' => source_id ,
100+ 'search[source]' => source ,
101101 'search[states]' => %w( paid unpaid complete confirmed incomplete cancelled ) ,
102102 ) ,
103103 sponsorship :,
104104 )
105105 rescue PaginationNotSupported
106- raise PaginationNotSupported , "Pagination not supported, encountered for source=#{ source_id . inspect } on event=#{ tito_event . inspect } "
106+ raise PaginationNotSupported , "Pagination not supported, encountered for source=#{ source . inspect } on event=#{ tito_event . inspect } "
107107 end
108108end
0 commit comments