fix: update last_verified when marking groups inactive

main
borja (aider) 3 months ago
parent 98a01dad19
commit ed7b209c1b

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

Loading…
Cancel
Save