@@ -52,10 +52,13 @@ func RefreshEventProjections(
5252 return err
5353 }
5454 if len (eventIds ) > 0 {
55- if err := upsertEventProjection (ctx , tx , eventIds ); err != nil {
55+ err := upsertEventProjection (ctx , tx , eventIds )
56+ if err != nil {
57+ debugf ("Error updating event projection: %v" , err )
5658 return err
5759 }
5860 }
61+ fmt .Println ("eventIds:" , eventIds )
5962 }
6063
6164 // Refresh event dates
@@ -65,10 +68,13 @@ func RefreshEventProjections(
6568 return err
6669 }
6770 if len (eventDateIds ) > 0 {
68- if err := upsertEventDateProjection (ctx , tx , eventDateIds ); err != nil {
71+ err := upsertEventDateProjection (ctx , tx , eventDateIds )
72+ if err != nil {
73+ debugf ("Error updating event date projection: %v" , err )
6974 return err
7075 }
7176 }
77+ fmt .Println ("eventDateIds:" , eventDateIds )
7278 }
7379
7480 return nil
@@ -191,7 +197,7 @@ INSERT INTO %[1]s.event_projection (
191197 title, subtitle, description, summary, image_id, languages, tags, types,
192198 source_url, online_link, occasion_type_id, max_attendees, min_age, max_age,
193199 participation_info, meeting_point, ticket_flags,
194- price_type, currency, min_price, max_price,
200+ price_type, currency, min_price, max_price, visitor_info_flags,
195201 external_id, custom, style, search_text,
196202 organization_name, organization_contact_email, organization_contact_phone, organization_website_link,
197203 venue_name, venue_street, venue_house_number, venue_postal_code, venue_city,
@@ -232,6 +238,7 @@ SELECT DISTINCT ON (e.id)
232238 e.currency,
233239 e.min_price,
234240 e.max_price,
241+ e.visitor_info_flags,
235242 e.external_id,
236243 e.custom,
237244 e.style,
@@ -304,6 +311,7 @@ ON CONFLICT (event_id) DO UPDATE SET
304311 currency = EXCLUDED.currency,
305312 min_price = EXCLUDED.min_price,
306313 max_price = EXCLUDED.max_price,
314+ visitor_info_flags = EXCLUDED.visitor_info_flags,
307315 external_id = EXCLUDED.external_id,
308316 custom = EXCLUDED.custom,
309317 style = EXCLUDED.style,
0 commit comments