export: Add in_transit field
This commit is contained in:
parent
4c63efe4a1
commit
906ec60ea2
1 changed files with 5 additions and 1 deletions
|
@ -292,7 +292,11 @@ sub json_export {
|
||||||
|
|
||||||
$self->render(
|
$self->render(
|
||||||
json => {
|
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 => [
|
journeys => [
|
||||||
$db->select( 'journeys', '*', { user_id => $uid } )
|
$db->select( 'journeys', '*', { user_id => $uid } )
|
||||||
->hashes->each
|
->hashes->each
|
||||||
|
|
Loading…
Reference in a new issue