Skip to content

Commit

Permalink
[Waste] [Echo] Log outgoing reserve call.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Oct 27, 2023
1 parent 5aab048 commit d2ef8ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions perllib/Integrations/Echo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ sub ReserveAvailableSlotsForEvent {
$from = $parser->parse_datetime($from);
$to = $parser->parse_datetime($to);

my $res = $self->call('ReserveAvailableSlotsForEvent',
my @req = ('ReserveAvailableSlotsForEvent',
event => ixhash(
Guid => $guid,
EventObjects => { EventObject => ixhash(
Expand All @@ -485,7 +485,8 @@ sub ReserveAvailableSlotsForEvent {
To => dt_to_hash($to),
),
);

$self->log(\@req);
my $res = $self->call(@req);
return [] unless ref $res eq 'HASH';

$self->log($res);
Expand Down

0 comments on commit d2ef8ba

Please sign in to comment.