formatting
This commit is contained in:
@@ -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[];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user