umami/queries/admin/website/getWebsiteByShareId.js
2022-07-15 16:47:38 -07:00

12 lines
206 B
JavaScript

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