feat: Zapier For Teams (#9851)

Co-authored-by: alannnc <[email protected]>
Co-authored-by: zomars <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-07-14 16:06:57 -07:00
1 parent dcd7e80e6a
commit e98bebb9b2
18 files changed
+247 -62

No files matched your search

@@ -6,14 +6,8 @@ const findValidApiKey = async (apiKey: string, appId?: string) => {
const validKey = await prisma.apiKey.findFirst({
where: {
AND: [
{
hashedKey,
},
{
appId,
},
],
hashedKey,
appId,
OR: [
{
expiresAt: {
@@ -20,6 +20,7 @@ const getWebhooks = async (options: GetSubscriberOptions, prisma: PrismaClient =
OR: [
{
userId,
teamId: null,
},
{
eventTypeId,