mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-30 15:58:11 +01:00
b484286523
* Add session_data / session redis to CH. * Add mysql migration.
9 lines
212 B
TypeScript
9 lines
212 B
TypeScript
import { Prisma } from '@prisma/client';
|
|
import prisma from 'lib/prisma';
|
|
|
|
export async function getSession(where: Prisma.SessionWhereUniqueInput) {
|
|
return prisma.client.session.findUnique({
|
|
where,
|
|
});
|
|
}
|