Commit 906ec60e authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

export: Add in_transit field

parent 4c63efe4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -293,6 +293,10 @@ sub json_export {
	$self->render(
		json => {
			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