Skip to content

Commit

Permalink
putandget_vevent: expect an arrayref passed
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Feb 5, 2018
1 parent 1f69eb4 commit 2081b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cassandane/Cyrus/JMAPCalendars.pm
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ sub assert_normalized_event_equals

sub putandget_vevent
{
my ($self, $id, $ical, @props) = @_;
my ($self, $id, $ical, $props) = @_;

my $jmap = $self->{jmap};
my $caldav = $self->{caldav};
Expand All @@ -787,7 +787,7 @@ sub putandget_vevent
$caldav->Request('PUT', $href, $ical, 'Content-Type' => 'text/calendar');

xlog "get event $id";
$res = $jmap->CallMethods([['CalendarEvent/get', {ids => [$id], properties => @props}, "R1"]]);
$res = $jmap->CallMethods([['CalendarEvent/get', {ids => [$id], properties => $props}, "R1"]]);

my $event = $res->[0][1]{list}[0];
$self->assert_not_null($event);
Expand Down

0 comments on commit 2081b19

Please sign in to comment.