From 1406e88ad6a5b2b9480fe252fdbe6afdd49c79d1 Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Wed, 15 Feb 2023 10:43:29 +0100 Subject: [PATCH] console.log's --- src/db/rte.ts | 1 + src/db/trkseg.ts | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/db/rte.ts b/src/db/rte.ts index ec5d82b..661df6f 100644 --- a/src/db/rte.ts +++ b/src/db/rte.ts @@ -61,6 +61,7 @@ export const compactRteOrTrkseg = async (params: any) => { compactedDocs, firstDoc: compactedDocs[0].doc, firstDocWpt: compactedDocs[0].doc.trkpt[0], + date: new Date().toISOString(), }); await db.bulkDocs(compactedDocs); } diff --git a/src/db/trkseg.ts b/src/db/trkseg.ts index 2e274d6..6b8714d 100644 --- a/src/db/trkseg.ts +++ b/src/db/trkseg.ts @@ -44,10 +44,10 @@ export const getTrkseg = async (params: any) => { const { id } = params; const { docs, trkseg } = await getTrksegDocs(params); if (docs.rows.length > 1) { - console.log({ - caller: 'getTrkseg compactRteOrTrksegDebounced required', - id, - }); + // console.log({ + // caller: 'getTrkseg compactRteOrTrksegDebounced required', + // id, + // }); compactRteOrTrksegDebounced({ id, getDocs: getTrksegDocs }); } return trkseg;