mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-11 12:22:26 +00:00
9 lines
324 B
TypeScript
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`)
|
|
);
|