From 378b3f18950dd522434bad499a3a11043d64437a Mon Sep 17 00:00:00 2001 From: borja Date: Fri, 5 Sep 2025 16:01:03 +0200 Subject: [PATCH] fix: incluir community_id en inserciones de tests de isGroupActive Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) --- tests/unit/services/group-sync.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/services/group-sync.test.ts b/tests/unit/services/group-sync.test.ts index 44ee12c..7773d05 100644 --- a/tests/unit/services/group-sync.test.ts +++ b/tests/unit/services/group-sync.test.ts @@ -151,8 +151,8 @@ describe('GroupSyncService', () => { // Clear cache and add test groups GroupSyncService.activeGroupsCache.clear(); 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, name, active) VALUES ('inactive-group', 'Inactive Group', 0)"); + db.exec("INSERT INTO groups (id, community_id, name, active) VALUES ('active-group', 'test-community', 'Active Group', 1)"); + db.exec("INSERT INTO groups (id, community_id, name, active) VALUES ('inactive-group', 'test-community', 'Inactive Group', 0)"); // Populate cache GroupSyncService['cacheActiveGroups'](); });