finish segments, update migration from filters to parameters
This commit is contained in:
1 parent
8408bbd25c
commit
5ffafc71fc
10 files changed
+25
-16
No files matched your search
@@ -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 },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user