fix: Add missing tracking in graphql
This commit is contained in:
@@ -27,6 +27,9 @@ query GetCollectionPage($locale: String!, $uid: String!) {
|
|||||||
updated_at
|
updated_at
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
trackingProps: collection_page(locale: "en", uid: $uid) {
|
||||||
|
url
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetCollectionPageRefs($locale: String!, $uid: String!) {
|
query GetCollectionPageRefs($locale: String!, $uid: String!) {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { Lang } from "@/constants/languages"
|
|
||||||
import { GetCollectionPage } from "@/lib/graphql/Query/CollectionPage/CollectionPage.graphql"
|
import { GetCollectionPage } from "@/lib/graphql/Query/CollectionPage/CollectionPage.graphql"
|
||||||
import { request } from "@/lib/graphql/request"
|
import { request } from "@/lib/graphql/request"
|
||||||
import { contentstackExtendedProcedureUID, router } from "@/server/trpc"
|
import { contentstackExtendedProcedureUID, router } from "@/server/trpc"
|
||||||
@@ -15,7 +14,8 @@ import {
|
|||||||
TrackingChannelEnum,
|
TrackingChannelEnum,
|
||||||
type TrackingSDKPageData,
|
type TrackingSDKPageData,
|
||||||
} from "@/types/components/tracking"
|
} from "@/types/components/tracking"
|
||||||
import { GetCollectionPageSchema } from "@/types/trpc/routers/contentstack/collectionPage"
|
import type { GetCollectionPageSchema } from "@/types/trpc/routers/contentstack/collectionPage"
|
||||||
|
import type { Lang } from "@/constants/languages"
|
||||||
|
|
||||||
export const collectionPageQueryRouter = router({
|
export const collectionPageQueryRouter = router({
|
||||||
get: contentstackExtendedProcedureUID.query(async ({ ctx }) => {
|
get: contentstackExtendedProcedureUID.query(async ({ ctx }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user