Segment editing.
This commit is contained in:
1 parent
fba7e12c36
commit
2dbcf63eeb
22 files changed
+306
-42
No files matched your search
@@ -20,7 +20,7 @@ export async function getWebsiteSegment(websiteId: string, segmentId: string): P
|
||||
}
|
||||
|
||||
export async function getWebsiteSegments(websiteId: string, type: string): Promise<Segment[]> {
|
||||
return prisma.client.Segment.findMany({
|
||||
return prisma.pagedQuery('segment', {
|
||||
where: { websiteId, type },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user