feat(SW-1710): add access checks to my stay page for viewing booking
This commit is contained in:
@@ -4,7 +4,7 @@ import { Lang } from "@/constants/languages"
|
||||
import { env } from "@/env/server"
|
||||
import * as api from "@/lib/api"
|
||||
|
||||
import encryptValue from "../utils/encryptValue"
|
||||
import { encrypt } from "../utils/encryption"
|
||||
|
||||
import type { FriendTransaction, Stay } from "./output"
|
||||
|
||||
@@ -93,7 +93,7 @@ async function updateStaysBookingUrl(
|
||||
d.attributes.confirmationNumber.toString() +
|
||||
"," +
|
||||
apiJson.data.attributes.lastName
|
||||
const encryptedBookingValue = encryptValue(originalString)
|
||||
const encryptedBookingValue = encrypt(originalString)
|
||||
if (!!encryptedBookingValue) {
|
||||
bookingUrl.searchParams.set("RefId", encryptedBookingValue)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user