Add userReport api

This commit is contained in:
Brian Cao 2023-05-18 13:13:18 -07:00
parent de509e7ccc
commit 4df7d6a2a1
7 changed files with 189 additions and 2 deletions

View file

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