diff --git a/apps/website/wrangler.jsonc b/apps/website/wrangler.jsonc index 496459c6..6a850ecd 100644 --- a/apps/website/wrangler.jsonc +++ b/apps/website/wrangler.jsonc @@ -1,6 +1,6 @@ { "$schema": "node_modules/wrangler/config-schema.json", - "name": "classroomio-website", + "name": "cio-web", "main": ".svelte-kit/cloudflare/_worker.js", "compatibility_date": "2026-03-13", "compatibility_flags": ["nodejs_compat"], diff --git a/packages/db/src/utils/seed/compliance.ts b/packages/db/src/utils/seed/compliance.ts index 18df29e6..2bb3e2ad 100644 --- a/packages/db/src/utils/seed/compliance.ts +++ b/packages/db/src/utils/seed/compliance.ts @@ -464,7 +464,7 @@ export async function seedCompliance({ enterpriseOrgId }: SeedComplianceArgs) { .from(course) .where(inArray(course.id, [HIPAA_COURSE_ID, SOC2_COURSE_ID])); const existingCourseIds = new Set(existingCourses.map((c) => c.id)); - const coursesToInsert: TNewCourse[] = [ + const allComplianceCourses: TNewCourse[] = [ { id: HIPAA_COURSE_ID, title: 'HIPAA Awareness 2026', @@ -531,7 +531,8 @@ export async function seedCompliance({ enterpriseOrgId }: SeedComplianceArgs) { status: 'ACTIVE', type: 'COMPLIANCE' } - ].filter((c) => !existingCourseIds.has(c.id!)); + ]; + const coursesToInsert = allComplianceCourses.filter((c) => !existingCourseIds.has(c.id!)); if (coursesToInsert.length > 0) { await db.insert(course).values(coursesToInsert); console.log(` ✓ Inserted ${coursesToInsert.length} compliance course(s)`);