(timestamp: number)
| 195 | } |
| 196 | |
| 197 | async function setLastSyncTimestamp(timestamp: number): Promise<void> { |
| 198 | const db = await getDB(); |
| 199 | await db.execute("INSERT OR REPLACE INTO sync_metadata (key, value) VALUES ('last_sync_at', ?)", [ |
| 200 | String(timestamp), |
| 201 | ]); |
| 202 | } |
| 203 | |
| 204 | // --------------------------------------------------------------------------- |
| 205 | // Collect local changes |
no test coverage detected