refactor: align routes with next 16 and local fonts
This commit is contained in:
parent
2e3b46a7b5
commit
dad84d7d0e
16 changed files with 2448 additions and 198 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { NextResponse } from "next/server"
|
||||
import { ZodError } from "zod"
|
||||
import { Prisma } from "@prisma/client"
|
||||
import { PrismaClientKnownRequestError } from "@prisma/client/runtime/library"
|
||||
|
||||
import { prisma } from "@/lib/prisma"
|
||||
|
|
@ -142,7 +143,7 @@ export async function DELETE(
|
|||
}
|
||||
|
||||
try {
|
||||
const result = await prisma.$transaction(async (tx) => {
|
||||
const result = await prisma.$transaction(async (tx: Prisma.TransactionClient) => {
|
||||
const users = await tx.user.updateMany({
|
||||
where: { companyId: company.id, tenantId: company.tenantId },
|
||||
data: { companyId: null },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue