fix: change procedure for booking widget toggle call to not require cms uid

This commit is contained in:
Tobias Johansson
2024-09-16 15:15:55 +02:00
parent 3151572108
commit 5cfbd8e70d

View File

@@ -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