mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Added getWebsite method.
This commit is contained in:
parent
0387cf0da0
commit
d8c440453c
4 changed files with 16 additions and 6 deletions
7
queries/admin/website/getWebsite.js
Normal file
7
queries/admin/website/getWebsite.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import prisma from 'lib/prisma';
|
||||
|
||||
export async function getWebsite(where) {
|
||||
return prisma.client.website.findUnique({
|
||||
where,
|
||||
});
|
||||
}
|
||||
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue