Fix Prisma JSON typing in V1 actions
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import { RoomVisibility } from "@prisma/client";
|
||||
import { Prisma, RoomVisibility } from "@prisma/client";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import { redirect } from "next/navigation";
|
||||
import { prisma } from "./prisma";
|
||||
@@ -98,7 +98,7 @@ export async function resetPersonalRoom(formData: FormData) {
|
||||
await prisma.$transaction([
|
||||
prisma.mediaSource.deleteMany({ where: { roomId: room.id } }),
|
||||
prisma.roomMessage.deleteMany({ where: { roomId: room.id } }),
|
||||
prisma.room.update({ where: { id: room.id }, data: { currentState: null } }),
|
||||
prisma.room.update({ where: { id: room.id }, data: { currentState: Prisma.JsonNull } }),
|
||||
prisma.auditEvent.create({
|
||||
data: {
|
||||
actorId: user.id,
|
||||
|
||||
Reference in New Issue
Block a user