Merged in feat/LOY-361-add-promo-campaign-page-type (pull request #2826)
Feat/LOY-361 add promo campaign page type * feat(LOY-361): add Pomo Campaign page type * chore(SW-361): remove campaign page flag * fix(LOY-361): cleanup * fix(LOY-361): add promo code Approved-by: Erik Tiekstra Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
@@ -4,6 +4,7 @@ import { batchRequest } from "../graphql/batchRequest"
|
||||
import {
|
||||
EntryByUrlBatch1,
|
||||
EntryByUrlBatch2,
|
||||
EntryByUrlBatch3,
|
||||
} from "../graphql/Query/ResolveEntry.graphql"
|
||||
import { validateEntryResolveSchema } from "../types/entry"
|
||||
|
||||
@@ -34,10 +35,16 @@ export async function resolve(url: string, lang = Lang.en) {
|
||||
key: cacheKey,
|
||||
},
|
||||
},
|
||||
{
|
||||
document: EntryByUrlBatch3,
|
||||
variables,
|
||||
cacheOptions: {
|
||||
ttl: "max",
|
||||
key: cacheKey,
|
||||
},
|
||||
},
|
||||
])
|
||||
|
||||
const validatedData = validateEntryResolveSchema.safeParse(response.data)
|
||||
|
||||
if (!validatedData.success) {
|
||||
return {
|
||||
error: validatedData.error,
|
||||
|
||||
Reference in New Issue
Block a user