Journey->add_from_in_transit: return ID of added journey
This commit is contained in:
parent
c7fedb9e42
commit
00ee3de6c1
1 changed files with 2 additions and 1 deletions
|
@ -254,7 +254,8 @@ sub add_from_in_transit {
|
||||||
$journey->{edited} = 0;
|
$journey->{edited} = 0;
|
||||||
$journey->{checkout_time} = DateTime->now( time_zone => 'Europe/Berlin' );
|
$journey->{checkout_time} = DateTime->now( time_zone => 'Europe/Berlin' );
|
||||||
|
|
||||||
$db->insert( 'journeys', $journey );
|
return $db->insert( 'journeys', $journey, { returning => 'id' } )
|
||||||
|
->hash->{id};
|
||||||
}
|
}
|
||||||
|
|
||||||
sub update {
|
sub update {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue