Files
pangolin/src/lib/api/getCachedSubscription.ts
Fred KISSIE f58cf68f7c 🚧 WIP
2025-11-11 23:35:20 +01:00

9 lines
324 B
TypeScript

import type { AxiosResponse } from "axios";
import { cache } from "react";
import { priv } from ".";
import type { GetOrgTierResponse } from "@server/routers/billing/types";
export const getCachedSubscription = cache(async (orgId: string) =>
priv.get<AxiosResponse<GetOrgTierResponse>>(`/org/${orgId}/billing/tier`)
);