Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Marfuen committed Feb 18, 2025
1 parent eaf519b commit 0686504
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

import type { TransformedCategory } from "@/types/framework";
import {
Card,
CardContent,
Expand All @@ -12,7 +11,6 @@ import {
import { DataTable } from "@/components/tables/frameworks/data-table";
import { useOrganizationCategories } from "@/app/[locale]/(app)/(dashboard)/frameworks/[frameworkId]/hooks/useOrganizationCategories";
import { useMemo } from "react";
import type { ComplianceStatus } from "@bubba/db";
import type { OrganizationControlType } from "@/components/tables/frameworks/columns";

interface FrameworkControlsProps {
Expand Down
3 changes: 3 additions & 0 deletions packages/db/prisma/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ async function main() {
await prisma.controlRequirement.deleteMany();
await prisma.framework.deleteMany();
await prisma.frameworkCategory.deleteMany();
await prisma.organizationControlRequirement.deleteMany();
console.log("✅ Database cleaned");
}
console.log("\n📋 Seeding policies...");
Expand Down Expand Up @@ -204,13 +205,15 @@ async function seedFrameworkCategoryControls(frameworkId, categoryCode) {
create: {
id: requirement.id,
controlId: controlCode,
name: requirement.name,
type: requirement.type,
description: requirement.description,
policyId: requirement.type === "policy"
? requirement.policyId
: null,
},
update: {
name: requirement.name,
description: requirement.description,
policyId: requirement.type === "policy"
? requirement.policyId
Expand Down

0 comments on commit 0686504

Please sign in to comment.