Skip to content

Commit a09a36a

Browse files
author
Moussa Iskounene
authored
Merge pull request #17 from tictactrip/fix/missing-create-ground-place-property
fix(createGroundPlace): Add property "is_latest" when creating a new place
2 parents 7d448ef + c690cc1 commit a09a36a

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

__tests__/groundplaces/applyGroundPlacesActionHistory.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ describe('#applyGroundPlacesActionHistory', () => {
4646
address: 'Strasbourg, France',
4747
latitude: 49,
4848
longitude: 7.8,
49+
is_latest: true,
4950
name: 'Strasbourg, Grand-Nord',
5051
serviced: 'False',
5152
type: 'group',

__tests__/groundplaces/createStopCluster.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ describe('#createStopCluster', () => {
6666
name: 'Strasbourg - Wolfisheim',
6767
longitude: 7.6275127,
6868
latitude: 48.5857122,
69+
is_latest: true,
6970
type: 'cluster',
7071
unique_name: null,
7172
},

__tests__/groundplaces/createStopGroup.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ describe('#createStopGroup', () => {
5555
name: 'Strasbourg - Wolfisheim',
5656
longitude: 7.6275127,
5757
latitude: 48.5857122,
58+
is_latest: true,
5859
country_code: 'fr',
5960
type: 'group',
6061
serviced: 'False',

src/helpers/parse.ts

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const parseGeneratePlaceToGroundPlace = (generateGpuidGroundPlace: GenerateGpuid
1818
childs: [],
1919
serviced: GroundPlaceServiced.FALSE,
2020
unique_name: generateGpuidGroundPlace.unique_name,
21+
is_latest: true,
2122
};
2223

2324
removeUndefinedValues(newGroundPlace);

0 commit comments

Comments
 (0)