cal.pub0.org/packages/lib/server/getBookerUrl.ts

8 lines
268 B
TypeScript

import { WEBAPP_URL } from "../constants";
import { getBrand } from "./getBrand";
export const getBookerUrl = async (user: { organizationId: number | null }) => {
const orgBrand = await getBrand(user.organizationId);
return orgBrand?.fullDomain ?? WEBAPP_URL;
};