Added getWebsite method.

This commit is contained in:
Mike Cao committed 2022-10-06 14:18:27 -07:00
1 parent 0387cf0da0
commit d8c440453c
4 files changed
+16 -6

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import prisma from 'lib/prisma';
export async function getWebsite(where) {
return prisma.client.website.findUnique({
where,
});
}
+1
View File
@@ -9,6 +9,7 @@ export * from './admin/website/createWebsite';
export * from './admin/website/deleteWebsite';
export * from './admin/website/getAllWebsites';
export * from './admin/website/getUserWebsites';
export * from './admin/website/getWebsite';
export * from './admin/website/getWebsiteById';
export * from './admin/website/getWebsiteByShareId';
export * from './admin/website/getWebsiteByUuid';