Updates to insights, event data, telemetry.
This commit is contained in:
8
queries/analytics/sessions/getSession.ts
Normal file
8
queries/analytics/sessions/getSession.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Prisma } from '@prisma/client';
|
||||
import prisma from 'lib/prisma';
|
||||
|
||||
export async function getSession(where: Prisma.SessionWhereUniqueInput) {
|
||||
return prisma.client.session.findUnique({
|
||||
where,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user