Fehler
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
'use server'
|
'use server'
|
||||||
|
|
||||||
import { prisma } from '@innungsapp/shared'
|
import { prisma, Prisma } from '@innungsapp/shared'
|
||||||
import { auth, getSanitizedHeaders } from '@/lib/auth'
|
import { auth, getSanitizedHeaders } from '@/lib/auth'
|
||||||
import { revalidatePath } from 'next/cache'
|
import { revalidatePath } from 'next/cache'
|
||||||
import { redirect } from 'next/navigation'
|
import { redirect } from 'next/navigation'
|
||||||
@@ -13,9 +13,9 @@ function normalizeEmail(email: string | null | undefined): string {
|
|||||||
return (email ?? '').trim().toLowerCase()
|
return (email ?? '').trim().toLowerCase()
|
||||||
}
|
}
|
||||||
|
|
||||||
function toJsonbText(value: string | undefined): string | null {
|
function toJsonbText(value: string | undefined): typeof Prisma.DbNull | string {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return null
|
return Prisma.DbNull
|
||||||
}
|
}
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|||||||
Reference in New Issue
Block a user