feat: add reset synced data button to settings

This commit is contained in:
Davide Scaini
2026-04-24 15:45:51 +02:00
parent f054869b04
commit c1e4ab5af7
2 changed files with 45 additions and 1 deletions
+7
View File
@@ -103,6 +103,13 @@ export async function upsertRemoteActivity(
return result.changes > 0;
}
export async function deleteRemoteActivities(
db: ReturnType<typeof useSQLiteContext>,
): Promise<number> {
const result = await db.runAsync(`DELETE FROM activities WHERE origin = 'remote'`);
return result.changes;
}
// ── Settings ───────────────────────────────────────────────────────────────
export async function getSetting(