From 528413bb6503b2f5eb9bb1524c2e4b66a439888b Mon Sep 17 00:00:00 2001 From: "joseph@dxw.com" Date: Wed, 4 Sep 2024 15:49:10 +0100 Subject: [PATCH] Explicitly include event data Productive made a breaking change to its API on 1st August such that responses no longer return included data by default. This means that the event for a booking is not included and our script fails. This commit updates the request to Productive to explicitly include the event data. --- lib/productive_client.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/productive_client.rb b/lib/productive_client.rb index 4ac8ab4..3720e4c 100644 --- a/lib/productive_client.rb +++ b/lib/productive_client.rb @@ -144,6 +144,7 @@ def bookings(person_id:, after:) event_id: event_ids.values, after: after ) + .includes(:event) .all end memo_wise :bookings