cal.pub0.org/packages/app-store/_utils/getAppKeysFromSlug.ts

11 lines
286 B
TypeScript

import type { Prisma } from "@prisma/client";
import prisma from "@calcom/prisma";
async function getAppKeysFromSlug(slug: string) {
const app = await prisma.app.findUnique({ where: { slug } });
return (app?.keys || {}) as Prisma.JsonObject;
}
export default getAppKeysFromSlug;