chore(frontend): fetch latest PingEvent timestamp in repository for sync operations

- Added `selectLatestPingEventTimestamp` query to `AppDatabase`.
- Updated `PingEventRepositoryImpl` to use the timestamp for `since` parameter instead of the event ID.
This commit is contained in:
2026-02-01 17:56:12 +01:00
parent 05e85ff98e
commit 5ff720f875
2 changed files with 17 additions and 4 deletions
@@ -36,6 +36,12 @@ FROM PingEvent
ORDER BY id DESC
LIMIT 1;
selectLatestPingEventTimestamp:
SELECT last_modified
FROM PingEvent
ORDER BY last_modified DESC
LIMIT 1;
upsertPingEvents:
-- SQLite dialect configured for this project is 3.18 (no UPSERT support).
-- Use INSERT OR REPLACE as pragmatic upsert.