From ed7b209c1b4039e1aba2ae827435d626532ced38 Mon Sep 17 00:00:00 2001 From: "borja (aider)" Date: Sun, 30 Mar 2025 00:03:34 +0100 Subject: [PATCH] fix: update last_verified when marking groups inactive --- src/services/group-sync.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) {