feat: Zapier For Teams (#9851)
Co-authored-by: alannnc <[email protected]> Co-authored-by: zomars <[email protected]>
This commit is contained in:
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: {
|
||||
|
||||
Reference in new issue
Block a user