feat: adds automatic generation of uuid id for webhooks create on API

This commit is contained in:
Agusti Fernandez Pardo committed 2022-06-01 17:05:33 +02:00
1 parent 7f42cc8479
commit 43b94d3e96
5 files changed
+7 -6

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
import { UserPermissionRole } from "@prisma/client";
import prisma from "@calcom/prisma";
import { UserPermissionRole } from "@calcom/prisma/client";
export const isAdminGuard = async (userId: number) => {
const user = await prisma.user.findUnique({ where: { id: userId } });