diff --git a/src/services/group-sync.ts b/src/services/group-sync.ts index 0f00de0..bfe4b11 100644 --- a/src/services/group-sync.ts +++ b/src/services/group-sync.ts @@ -67,8 +67,12 @@ export class GroupSyncService { let updated = 0; const transactionResult = db.transaction(() => { - // First mark all groups as inactive - const inactiveResult = db.prepare('UPDATE groups SET active = FALSE').run(); + // First mark all groups as inactive and update verification timestamp + const inactiveResult = db.prepare(` + UPDATE groups + SET active = FALSE, + last_verified = CURRENT_TIMESTAMP + `).run(); console.log('Marked groups inactive:', inactiveResult); for (const group of groups) {