From 2dd3805a5462a7972714e41883b1c1086d55ca40 Mon Sep 17 00:00:00 2001 From: Darius Date: Thu, 5 Mar 2026 01:22:04 +0100 Subject: [PATCH] formatting --- src/gadgetbridge/client.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gadgetbridge/client.ts b/src/gadgetbridge/client.ts index 44541b7..3b83610 100644 --- a/src/gadgetbridge/client.ts +++ b/src/gadgetbridge/client.ts @@ -16,7 +16,9 @@ export class GadgetbridgeClient { this.oldDbPath = oldDbPath; this.db = this.openDb(); watchFile(dbPath, { interval: 20 * 60 * 1000 }, () => { - try { this.db.close(); } catch {} + try { + this.db.close(); + } catch {} this.db = this.openDb(); }); } @@ -45,6 +47,11 @@ export class GadgetbridgeClient { GROUP BY date ORDER BY date `); - return stmt.all(fromTimestamp, toTimestamp, fromTimestamp, toTimestamp) as StepRow[]; + return stmt.all( + fromTimestamp, + toTimestamp, + fromTimestamp, + toTimestamp, + ) as StepRow[]; } }