umami/queries/admin/website/getWebsiteByUuid.js
2022-07-12 15:14:27 -07:00

13 lines
237 B
JavaScript

import { runQuery } from 'lib/queries';
import prisma from 'lib/db';
export async function getWebsiteByUuid(website_uuid) {
return runQuery(
prisma.website.findUnique({
where: {
website_uuid,
},
}),
);
}