Fix for undefined keys
This commit is contained in:
parent
b9e34c99ca
commit
4437bfa840
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import prisma from "@calcom/prisma";
|
||||||
|
|
||||||
async function getAppKeysFromSlug(slug: string) {
|
async function getAppKeysFromSlug(slug: string) {
|
||||||
const app = await prisma.app.findUnique({ where: { slug } });
|
const app = await prisma.app.findUnique({ where: { slug } });
|
||||||
return app?.keys as Prisma.JsonObject;
|
return (app?.keys || {}) as Prisma.JsonObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default getAppKeysFromSlug;
|
export default getAppKeysFromSlug;
|
||||||
|
|
Loading…
Reference in a new issue