mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 21:35:19 +00:00
ci: fix
This commit is contained in:
@@ -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 },
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user