refactor(LOY-48): update date property names in tracking data across contentstack queries

This commit is contained in:
Chuma McPhoy
2024-12-30 19:31:50 +01:00
parent 1f516c7c20
commit f2e29ae049
5 changed files with 10 additions and 10 deletions

View File

@@ -86,8 +86,8 @@ export const contentPageQueryRouter = router({
const tracking: TrackingSDKPageData = {
pageId: contentPage.data.content_page.system.uid,
domainLanguage: lang,
publishedDate: contentPage.data.content_page.system.updated_at,
createdDate: contentPage.data.content_page.system.created_at,
publishDate: contentPage.data.content_page.system.updated_at,
createDate: contentPage.data.content_page.system.created_at,
channel: createChannel(contentPage.data.content_page.system.uid),
pageType: createPageType(contentPage.data.content_page.system.uid),
pageName: contentPage.data.trackingProps.url,