From 906ec60ea201f358993b52a6d73041e2a4fe4a3c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 24 Apr 2019 07:13:38 +0200 Subject: export: Add in_transit field --- lib/Travelynx/Controller/Account.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/Travelynx') diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm index e60f1d3..7249ab8 100644 --- a/lib/Travelynx/Controller/Account.pm +++ b/lib/Travelynx/Controller/Account.pm @@ -292,7 +292,11 @@ sub json_export { $self->render( json => { - account => $db->select( 'users', '*', { id => $uid } )->hash, + account => $db->select( 'users', '*', { id => $uid } )->hash, + in_transit => [ + $db->select( 'in_transit', '*', { user_id => $uid } ) + ->hashes->each + ], journeys => [ $db->select( 'journeys', '*', { user_id => $uid } ) ->hashes->each -- cgit v1.2.3