export: Add in_transit field

This commit is contained in:
Daniel Friesel 2019-04-24 07:13:38 +02:00
parent 4c63efe4a1
commit 906ec60ea2

View file

@ -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