Merged in feat/basic-user (pull request #3135)
feat(SW-3610): Get basic user from api * feat(SW-3610): Get basic user from api * . * Optional profileid Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -5,7 +5,7 @@ import { safeTry } from "@scandic-hotels/common/utils/safeTry"
|
||||
|
||||
import { env } from "../../../../env/server"
|
||||
import { encrypt } from "../../../utils/encryption"
|
||||
import { getVerifiedUser } from "./getVerifiedUser"
|
||||
import { getBasicUser } from "./getBasicUser"
|
||||
|
||||
import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
import type { Session } from "next-auth"
|
||||
@@ -30,7 +30,7 @@ export async function updateStaysBookingUrl(
|
||||
lang: Lang
|
||||
) {
|
||||
const [user, error] = await safeTry(
|
||||
getVerifiedUser({
|
||||
getBasicUser({
|
||||
token: {
|
||||
access_token: session.token.access_token,
|
||||
expires_at: session.token.expires_at ?? 0,
|
||||
|
||||
Reference in New Issue
Block a user