Refactor
This commit is contained in:
@@ -144,9 +144,9 @@ export const contentPageSchema = z.object({
|
||||
updated_at: z.string(),
|
||||
})
|
||||
),
|
||||
page_settings: z.object({
|
||||
tracking_page_name: z.string().nullable(),
|
||||
}),
|
||||
}),
|
||||
trackingProps: z.object({
|
||||
url: z.string(),
|
||||
}),
|
||||
})
|
||||
|
||||
|
||||
@@ -68,9 +68,7 @@ export const contentPageQueryRouter = router({
|
||||
createdDate: contentPage.data.content_page.system.created_at,
|
||||
channel: TrackingChannelEnum["static-content-page"],
|
||||
pageType: "staticcontentpage",
|
||||
pageName: contentPage.data.content_page.page_settings.tracking_page_name,
|
||||
siteSections:
|
||||
contentPage.data.content_page.page_settings.tracking_page_name, // Always the same as pageName for this page
|
||||
pageName: contentPage.data.trackingProps.url,
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user