formatting

This commit is contained in:
Darius
2026-03-05 01:22:04 +01:00
parent 0e7abb9113
commit 2dd3805a54

View File

@@ -16,7 +16,9 @@ export class GadgetbridgeClient {
this.oldDbPath = oldDbPath; this.oldDbPath = oldDbPath;
this.db = this.openDb(); this.db = this.openDb();
watchFile(dbPath, { interval: 20 * 60 * 1000 }, () => { watchFile(dbPath, { interval: 20 * 60 * 1000 }, () => {
try { this.db.close(); } catch {} try {
this.db.close();
} catch {}
this.db = this.openDb(); this.db = this.openDb();
}); });
} }
@@ -45,6 +47,11 @@ export class GadgetbridgeClient {
GROUP BY date GROUP BY date
ORDER BY date ORDER BY date
`); `);
return stmt.all(fromTimestamp, toTimestamp, fromTimestamp, toTimestamp) as StepRow[]; return stmt.all(
fromTimestamp,
toTimestamp,
fromTimestamp,
toTimestamp,
) as StepRow[];
} }
} }