11 lines
273 B
TypeScript
11 lines
273 B
TypeScript
|
import { 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;
|