fix: change procedure for booking widget toggle call to not require cms uid
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
GetLoyaltyPageSettings,
|
||||
} from "@/lib/graphql/Query/BookingWidgetToggle.graphql"
|
||||
import { request } from "@/lib/graphql/request"
|
||||
import { contentstackExtendedProcedureUID, router } from "@/server/trpc"
|
||||
import { contentstackBaseProcedure, router } from "@/server/trpc"
|
||||
|
||||
import { generateTag } from "@/utils/generateTag"
|
||||
|
||||
@@ -21,7 +21,7 @@ import { affix as bookingwidgetAffix } from "./utils"
|
||||
import { ContentTypeEnum } from "@/types/requests/contentType"
|
||||
|
||||
export const bookingwidgetQueryRouter = router({
|
||||
getToggle: contentstackExtendedProcedureUID.query(async ({ ctx }) => {
|
||||
getToggle: contentstackBaseProcedure.query(async ({ ctx }) => {
|
||||
const failedResponse = { hideBookingWidget: false }
|
||||
const { contentType, uid, lang } = ctx
|
||||
|
||||
|
||||
Reference in New Issue
Block a user