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:
Linus Flood
2025-11-12 14:00:56 +00:00
parent 88644597df
commit 19495eed28
11 changed files with 123 additions and 23 deletions

View File

@@ -9,7 +9,7 @@ import { cache } from "../../DUPLICATED/cache"
import { creditCardsSchema } from "../../routers/user/output"
import { toApiLang } from "../../utils"
import { encrypt } from "../../utils/encryption"
import { getVerifiedUser } from "./utils/getVerifiedUser"
import { getBasicUser } from "./utils/getBasicUser"
import { type FriendTransaction, getStaysSchema, type Stay } from "./output"
import type { Lang } from "@scandic-hotels/common/constants/language"
@@ -190,7 +190,7 @@ export async function updateStaysBookingUrl(
lang: Lang
) {
const [user, error] = await safeTry(
getVerifiedUser({
getBasicUser({
token: session.token,
})
)