api and lib fixes (#1643)

This commit is contained in:
Brian Cao 2022-11-08 11:55:02 -08:00 committed by GitHub
parent 168283bf11
commit 13fd3ccd16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 30 additions and 29 deletions

View file

@ -12,10 +12,8 @@ export async function getPageviews(...args) {
async function relationalQuery(websites, start_at) {
return prisma.client.pageview.findMany({
where: {
website: {
id: {
in: websites,
},
websiteId: {
in: websites,
},
createdAt: {
gte: start_at,