umami/queries/analytics/session/getSession.ts

9 lines
212 B
TypeScript
Raw Normal View History

import { Prisma } from '@prisma/client';
import prisma from 'lib/prisma';
2022-07-12 23:14:36 +02:00
export async function getSession(where: Prisma.SessionWhereUniqueInput) {
return prisma.client.session.findUnique({
where,
});
2022-07-12 23:14:36 +02:00
}