console.log's
This commit is contained in:
parent
c4b2fa175d
commit
1406e88ad6
|
@ -61,6 +61,7 @@ export const compactRteOrTrkseg = async (params: any) => {
|
||||||
compactedDocs,
|
compactedDocs,
|
||||||
firstDoc: compactedDocs[0].doc,
|
firstDoc: compactedDocs[0].doc,
|
||||||
firstDocWpt: compactedDocs[0].doc.trkpt[0],
|
firstDocWpt: compactedDocs[0].doc.trkpt[0],
|
||||||
|
date: new Date().toISOString(),
|
||||||
});
|
});
|
||||||
await db.bulkDocs(compactedDocs);
|
await db.bulkDocs(compactedDocs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,10 +44,10 @@ export const getTrkseg = async (params: any) => {
|
||||||
const { id } = params;
|
const { id } = params;
|
||||||
const { docs, trkseg } = await getTrksegDocs(params);
|
const { docs, trkseg } = await getTrksegDocs(params);
|
||||||
if (docs.rows.length > 1) {
|
if (docs.rows.length > 1) {
|
||||||
console.log({
|
// console.log({
|
||||||
caller: 'getTrkseg compactRteOrTrksegDebounced required',
|
// caller: 'getTrkseg compactRteOrTrksegDebounced required',
|
||||||
id,
|
// id,
|
||||||
});
|
// });
|
||||||
compactRteOrTrksegDebounced({ id, getDocs: getTrksegDocs });
|
compactRteOrTrksegDebounced({ id, getDocs: getTrksegDocs });
|
||||||
}
|
}
|
||||||
return trkseg;
|
return trkseg;
|
||||||
|
|
Loading…
Reference in New Issue