diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-24 07:13:38 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-24 07:13:38 +0200 |
commit | 906ec60ea201f358993b52a6d73041e2a4fe4a3c (patch) | |
tree | fd3cb5bd50bfee111d4eeddc670220f1cbc89bd4 /lib/Travelynx | |
parent | 4c63efe4a16c8e60693e6140d9be38bab0d35bf3 (diff) |
export: Add in_transit field
Diffstat (limited to 'lib/Travelynx')
-rw-r--r-- | lib/Travelynx/Controller/Account.pm | 6 |
1 files changed, 5 insertions, 1 deletions
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 |