summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Api.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-17 20:01:39 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-17 20:01:39 +0100
commitae21896982b5f53c0a011740f58a97be40bf0b30 (patch)
tree9258ac91b121b04aaa3ed2ff33a087ca95e80052 /lib/Travelynx/Controller/Api.pm
parent9adec3ee8d1badec3dcd3643774b5e5c0e866840 (diff)
API: Add lax option
Diffstat (limited to 'lib/Travelynx/Controller/Api.pm')
-rwxr-xr-xlib/Travelynx/Controller/Api.pm3
1 files changed, 2 insertions, 1 deletions
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) {