api and lib fixes (#1643)
This commit is contained in:
1 parent
168283bf11
commit
13fd3ccd16
9 files changed
+30
-29
No files matched your search
@@ -5,16 +5,16 @@ export async function resetWebsite(id) {
|
||||
|
||||
return transaction([
|
||||
client.pageview.deleteMany({
|
||||
where: { session: { website: { id } } },
|
||||
where: { websiteId: id },
|
||||
}),
|
||||
client.eventData.deleteMany({
|
||||
where: { event: { session: { website: { id } } } },
|
||||
where: { event: { websiteId: id } },
|
||||
}),
|
||||
client.event.deleteMany({
|
||||
where: { session: { website: { id } } },
|
||||
where: { websiteId: id },
|
||||
}),
|
||||
client.session.deleteMany({
|
||||
where: { website: { id } },
|
||||
where: { websiteId: id },
|
||||
}),
|
||||
]);
|
||||
}
|
||||
Reference in new issue
Block a user