Adding adresses to rtept rather than rte.
This commit is contained in:
1 parent
2ca519a53c
commit
e7b27cda4e
5 files changed
+33
-20
No files matched your search
@@ -46,6 +46,7 @@ export const getRte = async (params: any) => {
|
||||
//level 1
|
||||
if (row.doc.type === 'rtept') {
|
||||
target.splice(1);
|
||||
row.doc.doc.id = row.doc._id;
|
||||
appendToArray(target.at(-1), row.doc.type, row.doc.doc);
|
||||
target.push(row.doc.doc);
|
||||
}
|
||||
|
||||
@@ -42,3 +42,10 @@ export const putNewRtept = async (id?: IdGpx | IdRte | IdRtept) => {
|
||||
);
|
||||
return finalId as IdRtept;
|
||||
};
|
||||
|
||||
export const putRtept = async (params: any) => {
|
||||
const { id, rtept } = params;
|
||||
rtept.id = undefined;
|
||||
await put(id, 'rtept', (doc) => rtept, rtept);
|
||||
return rtept;
|
||||
};
|
||||
Vendored
+1
@@ -49,6 +49,7 @@ interface Extensions {
|
||||
'dyo:batterylevel'?: number;
|
||||
'dyo:useragent'?: string;
|
||||
'dyo:minZoom'?: number;
|
||||
address: any;
|
||||
}
|
||||
|
||||
interface Trk {
|
||||
|
||||
Reference in new issue
Block a user