mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-03 23:57:37 +01:00
9 lines
239 B
TypeScript
9 lines
239 B
TypeScript
import prisma from 'lib/prisma';
|
|
import { Prisma, Website } from '@prisma/client';
|
|
|
|
export async function getWebsite(where: Prisma.WebsiteWhereUniqueInput): Promise<Website> {
|
|
return prisma.client.website.findUnique({
|
|
where,
|
|
});
|
|
}
|