|
|
|
@ -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) {
|
|
|
|
|