fix: incluir community_id en inserciones de tests de isGroupActive

Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
pull/1/head
borja 2 months ago
parent 9f339ad218
commit 378b3f1895

@ -151,8 +151,8 @@ describe('GroupSyncService', () => {
// Clear cache and add test groups // Clear cache and add test groups
GroupSyncService.activeGroupsCache.clear(); GroupSyncService.activeGroupsCache.clear();
db.exec('DELETE FROM groups'); db.exec('DELETE FROM groups');
db.exec("INSERT INTO groups (id, name, active) VALUES ('active-group', 'Active Group', 1)"); db.exec("INSERT INTO groups (id, community_id, name, active) VALUES ('active-group', 'test-community', 'Active Group', 1)");
db.exec("INSERT INTO groups (id, name, active) VALUES ('inactive-group', 'Inactive Group', 0)"); db.exec("INSERT INTO groups (id, community_id, name, active) VALUES ('inactive-group', 'test-community', 'Inactive Group', 0)");
// Populate cache // Populate cache
GroupSyncService['cacheActiveGroups'](); GroupSyncService['cacheActiveGroups']();
}); });

Loading…
Cancel
Save