mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
finish segments, update migration from filters to parameters
This commit is contained in:
parent
8408bbd25c
commit
5ffafc71fc
10 changed files with 25 additions and 16 deletions
|
|
@ -13,9 +13,13 @@ export async function getSegment(segmentId: string): Promise<Segment> {
|
|||
});
|
||||
}
|
||||
|
||||
export async function getWebsiteSegment(websiteId: string, name: string): Promise<Segment> {
|
||||
export async function getWebsiteSegment(
|
||||
websiteId: string,
|
||||
type: string,
|
||||
name: string,
|
||||
): Promise<Segment> {
|
||||
return prisma.client.segment.findFirst({
|
||||
where: { websiteId, name },
|
||||
where: { websiteId, type, name },
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue