style: remove unused line

This commit is contained in:
moonrailgun 2023-09-30 23:51:21 +08:00
parent 65c85ee687
commit 5fed993f73

View File

@ -269,7 +269,6 @@ export async function getWebsiteOnlineUserCount(
const res = await prisma.$queryRaw< const res = await prisma.$queryRaw<
Ret[] Ret[]
>`SELECT count(distinct "sessionId") x FROM "WebsiteEvent" where "websiteId" = ${websiteId}::uuid AND "createdAt" >= ${startAt}`; >`SELECT count(distinct "sessionId") x FROM "WebsiteEvent" where "websiteId" = ${websiteId}::uuid AND "createdAt" >= ${startAt}`;
console.log('res', res);
return res?.[0].x ?? 0; return res?.[0].x ?? 0;
} }