Added getWebsite method.

This commit is contained in:
Mike Cao 2022-10-06 14:18:27 -07:00
parent 0387cf0da0
commit d8c440453c
4 changed files with 16 additions and 6 deletions

View file

@ -0,0 +1,7 @@
import prisma from 'lib/prisma';
export async function getWebsite(where) {
return prisma.client.website.findUnique({
where,
});
}