This commit is contained in:
Vasily Zubarev
2025-05-03 10:36:54 +02:00
parent 3d07a2fde0
commit 88ee5c5022

View File

@@ -9,6 +9,10 @@ export const SELF_HOSTED_USER = {
} }
export const getSelfHostedUser = cache(async () => { export const getSelfHostedUser = cache(async () => {
if (!process.env.DATABASE_URL) {
return null // fix for CI, do not remove
}
return await prisma.user.findFirst({ return await prisma.user.findFirst({
where: { email: SELF_HOSTED_USER.email }, where: { email: SELF_HOSTED_USER.email },
}) })