Add userReport api

This commit is contained in:
Brian Cao committed 2023-05-18 13:13:18 -07:00
1 parent de509e7ccc
commit 4df7d6a2a1
7 files changed
+189 -2

No files matched your search

+14
View File
@@ -210,6 +210,20 @@ export async function deleteUser(
},
},
}),
client.userReport.deleteMany({
where: {
OR: [
{
websiteId: {
in: websiteIds,
},
},
{
userId,
},
],
},
}),
cloudMode
? client.website.updateMany({
data: {