fix(SW-104): use relative url for initiation
This commit is contained in:
@@ -21,8 +21,6 @@ export const soonestUpcomingStaysInput = z
|
||||
|
||||
export const initiateSaveCardInput = z.object({
|
||||
language: z.string(),
|
||||
mobileToken: z.boolean(),
|
||||
redirectUrl: z.string(),
|
||||
})
|
||||
|
||||
export const saveCardInput = z.object({
|
||||
|
||||
@@ -554,8 +554,8 @@ export const userQueryRouter = router({
|
||||
},
|
||||
body: {
|
||||
language: input.language,
|
||||
mobileToken: input.mobileToken,
|
||||
redirectUrl: input.redirectUrl,
|
||||
mobileToken: false,
|
||||
redirectUrl: `api/web/add-card-callback/${input.language}`,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user