Files
cal.diy/packages/app-store/dailyvideo/lib/getDailyAppKeys.ts
T
Pavel Shapelandzomars 6d79f80928 refactor: use BookingReference instead of DailyEventReference (#3667)
* refactor: use BookingReference instead of DailyEventReference

* refactor: migrate DailyEventReference records to BookingReference

* refactor: drop DailyEventReference table

* fix linting

* Daily Video API adapter fixes

Co-authored-by: zomars <zomars@me.com>
2022-08-10 18:53:05 -06:00

13 lines
310 B
TypeScript

import { z } from "zod";
import getAppKeysFromSlug from "../../_utils/getAppKeysFromSlug";
const dailyAppKeysSchema = z.object({
api_key: z.string(),
});
export const getDailyAppKeys = async () => {
const appKeys = await getAppKeysFromSlug("daily-video");
return dailyAppKeysSchema.parse(appKeys);
};