umami/queries/admin/website/getWebsiteById.js
2022-08-25 22:20:30 -07:00

12 lines
213 B
JavaScript

import { prisma, runQuery } from 'lib/relational';
export async function getWebsiteById(website_id) {
return runQuery(
prisma.website.findUnique({
where: {
website_id,
},
}),
);
}