console.log's

This commit is contained in:
Eric van der Vlist 2023-02-15 10:43:29 +01:00
parent c4b2fa175d
commit 1406e88ad6
2 changed files with 5 additions and 4 deletions

View File

@ -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);
} }

View File

@ -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;