data export: use station names, not IDs

This commit is contained in:
Daniel Friesel 2019-05-03 21:14:49 +02:00
parent 1694026c86
commit 954638e7c7

View file

@ -572,11 +572,11 @@ sub json_export {
json => { json => {
account => $db->select( 'users', '*', { id => $uid } )->hash, account => $db->select( 'users', '*', { id => $uid } )->hash,
in_transit => [ in_transit => [
$db->select( 'in_transit', '*', { user_id => $uid } ) $db->select( 'in_transit_str', '*', { user_id => $uid } )
->hashes->each ->hashes->each
], ],
journeys => [ journeys => [
$db->select( 'journeys', '*', { user_id => $uid } ) $db->select( 'journeys_str', '*', { user_id => $uid } )
->hashes->each ->hashes->each
], ],
} }