Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
chitalian committed Jan 9, 2025
1 parent f223517 commit c616669
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 39 deletions.
9 changes: 4 additions & 5 deletions valhalla/jawn/src/controllers/private/adminController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ import {
Patch,
Path,
Post,
Put,
Request,
Route,
Security,
Tags,
} from "tsoa";
import { JawnAuthenticatedRequest } from "../../types/request";
import { supabaseServer } from "../../lib/db/supabase";
import { Setting, SettingName } from "../../utils/settings";
import { clickhouseDb } from "../../lib/db/ClickhouseWrapper";
import { dbExecute } from "../../lib/shared/db/dbExecute";
import { supabaseServer } from "../../lib/db/supabase";
import { prepareRequestAzure } from "../../lib/experiment/requestPrep/azure";
import { dbExecute } from "../../lib/shared/db/dbExecute";
import { getGovernanceOrgs } from "../../lib/stores/AdminStore";
import { JawnAuthenticatedRequest } from "../../types/request";
import { Setting, SettingName } from "../../utils/settings";

export const authCheckThrow = async (userId: string | undefined) => {
if (!userId) {
Expand Down
29 changes: 8 additions & 21 deletions valhalla/jawn/src/controllers/private/govOrganizationController.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
import {
Route,
Tags,
Security,
Controller,
Body,
Controller,
Get,
Path,
Post,
Request,
Path,
Delete,
Get,
Query,
Route,
Security,
Tags,
} from "tsoa";
import { err, ok, Result } from "../../lib/shared/result";
import { JawnAuthenticatedRequest } from "../../types/request";
import {
NewOrganizationParams,
OrganizationFilter,
OrganizationLayout,
OrganizationManager,
OrganizationMember,
OrganizationOwner,
UpdateOrganizationParams,
} from "../../managers/organization/OrganizationManager";
import { supabaseServer } from "../../lib/db/supabase";
import { StripeManager } from "../../managers/stripe/StripeManager";
import { getGovernanceOrgs } from "../../lib/stores/AdminStore";
import { err, ok } from "../../lib/shared/result";
import { JawnAuthenticatedRequest } from "../../types/request";

@Route("v1/gov-organization")
@Tags("Gov Organization")
Expand Down
19 changes: 9 additions & 10 deletions valhalla/jawn/src/controllers/private/organizationController.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import {
Route,
Tags,
Security,
Controller,
Body,
Post,
Request,
Path,
Controller,
Delete,
Get,
Path,
Post,
Query,
Request,
Route,
Security,
Tags,
} from "tsoa";
import { supabaseServer } from "../../lib/db/supabase";
import { err, ok, Result } from "../../lib/shared/result";
import { JawnAuthenticatedRequest } from "../../types/request";
import {
NewOrganizationParams,
OrganizationFilter,
Expand All @@ -22,9 +22,8 @@ import {
OrganizationOwner,
UpdateOrganizationParams,
} from "../../managers/organization/OrganizationManager";
import { supabaseServer } from "../../lib/db/supabase";
import { StripeManager } from "../../managers/stripe/StripeManager";
import { getGovernanceOrgs } from "../../lib/stores/AdminStore";
import { JawnAuthenticatedRequest } from "../../types/request";

@Route("v1/organization")
@Tags("Organization")
Expand Down
1 change: 0 additions & 1 deletion web/components/templates/keys/keyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import ThemedModal from "../../shared/themed/themedModal";
import ThemedTable from "../../shared/themed/themedTable";
import { useKeysPage } from "./useKeysPage";
import AddKeyModal from "./addKeyModal";
import { useIsGovernanceEnabled } from "../organization/hooks";

interface KeyPageProps {
hideTabs?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion web/components/templates/settings/settingsLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
UserGroupIcon,
} from "@heroicons/react/24/outline";
import { Separator } from "@/components/ui/separator";
import { FingerprintIcon, KeyIcon, LinkIcon, LockIcon } from "lucide-react";
import { FingerprintIcon, KeyIcon, LinkIcon } from "lucide-react";
import Link from "next/link";
import { useRouter } from "next/router";
import { ReactNode, useMemo } from "react";
Expand Down
1 change: 0 additions & 1 deletion web/pages/admin/governance-orgs.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { User } from "@supabase/auth-helpers-nextjs";
import { ReactElement } from "react";
import AdminLayout from "../../components/layout/admin/adminLayout";
import { AdminOnPremPage } from "../../components/templates/admin/onPrem/adminOnPrem";
import { withAuthSSR } from "../../lib/api/handlerWrappers";
import { supabaseServer } from "../../lib/supabaseServer";
import { AdminGovernanceOrgsPage } from "@/components/templates/admin/onPrem/GovernanceOrgs";
Expand Down

0 comments on commit c616669

Please sign in to comment.