Merged in fix/sw-3667-not-enough-points (pull request #3337)

fix(SW-3667): Remove conditional on Scandic user token

* Remove conditional on Scandic user token


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-12-12 09:34:07 +00:00
parent e5149846e5
commit de94c47f3f
6 changed files with 6 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ export const enterDetails = safeProtectedServiceProcedure
if (input.booking.searchType === SEARCH_TYPE_REDEMPTION) {
if (isValidSession(ctx.session)) {
const pointsValue = await ctx.getUserPointsBalance()
if (pointsValue && userToken) {
if (pointsValue) {
return next<Context>({
ctx: {
userToken,

View File

@@ -79,7 +79,7 @@ export const hotelsByCity = safeProtectedServiceProcedure
}
const pointsValue = await ctx.getUserPointsBalance()
if (pointsValue && userToken) {
if (pointsValue) {
return next<Context>({
ctx: {
userToken,

View File

@@ -75,7 +75,7 @@ export const hotelsByHotelIds = safeProtectedServiceProcedure
}
const pointsValue = await ctx.getUserPointsBalance()
if (pointsValue && userToken) {
if (pointsValue) {
return next<Context>({
ctx: {
userToken,

View File

@@ -36,7 +36,7 @@ export const myStay = safeProtectedServiceProcedure
}
const pointsValue = await ctx.getUserPointsBalance()
if (pointsValue && userToken) {
if (pointsValue) {
return next<Context>({
ctx: {
userToken,

View File

@@ -34,7 +34,7 @@ export const room = safeProtectedServiceProcedure
}
const pointsValue = await ctx.getUserPointsBalance()
if (pointsValue && userToken) {
if (pointsValue) {
return next<Context>({
ctx: {
userToken,

View File

@@ -25,7 +25,7 @@ export const rooms = safeProtectedServiceProcedure
}
const pointsValue = await ctx.getUserPointsBalance()
if (pointsValue && userToken) {
if (pointsValue) {
return next<Context>({
ctx: {
userToken,