From ae21896982b5f53c0a011740f58a97be40bf0b30 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 17 Dec 2019 20:01:39 +0100 Subject: API: Add lax option --- lib/Travelynx/Controller/Api.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Travelynx') diff --git a/lib/Travelynx/Controller/Api.pm b/lib/Travelynx/Controller/Api.pm index 2e1fa49..54908fc 100755 --- a/lib/Travelynx/Controller/Api.pm +++ b/lib/Travelynx/Controller/Api.pm @@ -452,7 +452,8 @@ sub import_v1 { journey_id => $journey_id, verbose => 1 ); - $error = $self->journey_sanity_check($journey); + $error + = $self->journey_sanity_check( $journey, $payload->{lax} ? 1 : 0 ); } if ($error) { -- cgit v1.2.3