feat: Setups prisma accelerate (#11324)
This commit is contained in:
1 parent
21a0b67b5a
commit
560ec244e8
15 files changed
+150
-49
No files matched your search
@@ -50,6 +50,8 @@ export async function getServerSession(options: {
|
||||
where: {
|
||||
email: token.email.toLowerCase(),
|
||||
},
|
||||
// TODO: Re-enable once we get confirmation from compliance that this is okay.
|
||||
// cacheStrategy: { ttl: 60, swr: 1 },
|
||||
});
|
||||
|
||||
if (!user) {
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
import type {
|
||||
Account,
|
||||
IdentityProvider,
|
||||
Prisma,
|
||||
PrismaClient,
|
||||
User,
|
||||
VerificationToken,
|
||||
} from "@prisma/client";
|
||||
import type { Account, IdentityProvider, Prisma, User, VerificationToken } from "@prisma/client";
|
||||
import { PrismaClientKnownRequestError } from "@prisma/client/runtime/library";
|
||||
|
||||
import type { PrismaClient } from "@calcom/prisma";
|
||||
|
||||
import { identityProviderNameMap } from "./identityProviderNameMap";
|
||||
|
||||
/** @return { import("next-auth/adapters").Adapter } */
|
||||
|
||||
@@ -82,7 +82,8 @@ const getUserAdminTeams = async ({
|
||||
name: user.name || "me",
|
||||
logo: user?.avatar === "" ? null : user?.avatar,
|
||||
isUser: true,
|
||||
...(includeCredentials && { credentials: user.credentials }),
|
||||
credentials: includeCredentials ? [] : user.credentials,
|
||||
parent: null,
|
||||
};
|
||||
teams.unshift(userObject);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user