Skip to content

Commit

Permalink
Explicitly include event data
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jdudley1123 committed Sep 4, 2024
1 parent 4ba0a63 commit 528413b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/productive_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def bookings(person_id:, after:)
event_id: event_ids.values,
after: after
)
.includes(:event)
.all
end
memo_wise :bookings
Expand Down

0 comments on commit 528413b

Please sign in to comment.