|
|
|
@ -428,9 +428,9 @@ export class GroupSyncService {
|
|
|
|
lastId: inactiveResult.lastInsertRowid
|
|
|
|
lastId: inactiveResult.lastInsertRowid
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
for (const group of groups) {
|
|
|
|
for (const group of groups as EvolutionGroup[]) {
|
|
|
|
const existing = this.dbInstance.prepare('SELECT 1 FROM groups WHERE id = ?').get((group as EvolutionGroup).id);
|
|
|
|
const existing = this.dbInstance.prepare('SELECT 1 FROM groups WHERE id = ?').get(group.id);
|
|
|
|
console.log('Checking group:', (group as EvolutionGroup).id, 'exists:', !!existing);
|
|
|
|
console.log('Checking group:', group.id, 'exists:', !!existing);
|
|
|
|
|
|
|
|
|
|
|
|
const isCommunityFlag = !!(((group as any)?.isCommunity) || ((group as any)?.is_community) || ((group as any)?.isCommunityAnnounce) || ((group as any)?.is_community_announce));
|
|
|
|
const isCommunityFlag = !!(((group as any)?.isCommunity) || ((group as any)?.is_community) || ((group as any)?.isCommunityAnnounce) || ((group as any)?.is_community_announce));
|
|
|
|
|
|
|
|
|
|
|
|
|