Skip to content

Commit

Permalink
fix(events): ensure top is set when making requests
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Oct 26, 2023
1 parent efbf4e5 commit 2746ab9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: office365
version: 1.23.1
version: 1.23.2

crystal: ">= 0.36.1"

Expand Down
5 changes: 3 additions & 2 deletions src/events.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ module Office365::Events
period_start : Time = Time.local.at_beginning_of_day,
period_end : Time? = nil,
ical_uid : String? = nil,
top : Int32? = 10000,
filter : String? = nil
)
path, params = calendar_view_path(mailbox, calendar_group_id, calendar_id, period_start, period_end, ical_uid, filter)
path, params = calendar_view_path(mailbox, calendar_group_id, calendar_id, period_start, period_end, ical_uid, top, filter)

graph_http_request(request_method: "GET", path: path, query: params)
end
Expand Down Expand Up @@ -227,7 +228,7 @@ module Office365::Events
period_start : Time = Time.local.at_beginning_of_day,
period_end : Time? = nil,
ical_uid : String? = nil,
top : Int32? = 999,
top : Int32? = 10000,
filter : String? = nil
)
end_period = period_end || period_start + 6.months
Expand Down

0 comments on commit 2746ab9

Please sign in to comment.