fix: add channel and pageType
This commit is contained in:
@@ -199,6 +199,7 @@ const validateAccountTrackingData = z.object({
|
||||
updated_at: z.string(),
|
||||
created_at: z.string(),
|
||||
}),
|
||||
title: z.string().nullable(),
|
||||
}),
|
||||
})
|
||||
|
||||
|
||||
@@ -159,6 +159,7 @@ export const accountPageQueryRouter = router({
|
||||
publishedDate: response.data.account_page.system.updated_at,
|
||||
createdDate: response.data.account_page.system.created_at,
|
||||
channel: TrackingChannelEnum["scandic-friends"],
|
||||
pageType: `member${response.data.account_page.title}page`,
|
||||
}
|
||||
|
||||
return accountTrackingData
|
||||
|
||||
@@ -252,6 +252,7 @@ export const loyaltyPageQueryRouter = router({
|
||||
publishedDate: response.data.loyalty_page.system.updated_at,
|
||||
createdDate: response.data.loyalty_page.system.created_at,
|
||||
channel: TrackingChannelEnum["scandic-friends"],
|
||||
pageType: "loyaltycontentpage",
|
||||
}
|
||||
|
||||
return loyaltyTrackingData
|
||||
|
||||
Reference in New Issue
Block a user