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:
@@ -44,7 +44,7 @@ export const enterDetails = safeProtectedServiceProcedure
|
|||||||
if (input.booking.searchType === SEARCH_TYPE_REDEMPTION) {
|
if (input.booking.searchType === SEARCH_TYPE_REDEMPTION) {
|
||||||
if (isValidSession(ctx.session)) {
|
if (isValidSession(ctx.session)) {
|
||||||
const pointsValue = await ctx.getUserPointsBalance()
|
const pointsValue = await ctx.getUserPointsBalance()
|
||||||
if (pointsValue && userToken) {
|
if (pointsValue) {
|
||||||
return next<Context>({
|
return next<Context>({
|
||||||
ctx: {
|
ctx: {
|
||||||
userToken,
|
userToken,
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ export const hotelsByCity = safeProtectedServiceProcedure
|
|||||||
}
|
}
|
||||||
|
|
||||||
const pointsValue = await ctx.getUserPointsBalance()
|
const pointsValue = await ctx.getUserPointsBalance()
|
||||||
if (pointsValue && userToken) {
|
if (pointsValue) {
|
||||||
return next<Context>({
|
return next<Context>({
|
||||||
ctx: {
|
ctx: {
|
||||||
userToken,
|
userToken,
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ export const hotelsByHotelIds = safeProtectedServiceProcedure
|
|||||||
}
|
}
|
||||||
|
|
||||||
const pointsValue = await ctx.getUserPointsBalance()
|
const pointsValue = await ctx.getUserPointsBalance()
|
||||||
if (pointsValue && userToken) {
|
if (pointsValue) {
|
||||||
return next<Context>({
|
return next<Context>({
|
||||||
ctx: {
|
ctx: {
|
||||||
userToken,
|
userToken,
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export const myStay = safeProtectedServiceProcedure
|
|||||||
}
|
}
|
||||||
|
|
||||||
const pointsValue = await ctx.getUserPointsBalance()
|
const pointsValue = await ctx.getUserPointsBalance()
|
||||||
if (pointsValue && userToken) {
|
if (pointsValue) {
|
||||||
return next<Context>({
|
return next<Context>({
|
||||||
ctx: {
|
ctx: {
|
||||||
userToken,
|
userToken,
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export const room = safeProtectedServiceProcedure
|
|||||||
}
|
}
|
||||||
|
|
||||||
const pointsValue = await ctx.getUserPointsBalance()
|
const pointsValue = await ctx.getUserPointsBalance()
|
||||||
if (pointsValue && userToken) {
|
if (pointsValue) {
|
||||||
return next<Context>({
|
return next<Context>({
|
||||||
ctx: {
|
ctx: {
|
||||||
userToken,
|
userToken,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export const rooms = safeProtectedServiceProcedure
|
|||||||
}
|
}
|
||||||
|
|
||||||
const pointsValue = await ctx.getUserPointsBalance()
|
const pointsValue = await ctx.getUserPointsBalance()
|
||||||
if (pointsValue && userToken) {
|
if (pointsValue) {
|
||||||
return next<Context>({
|
return next<Context>({
|
||||||
ctx: {
|
ctx: {
|
||||||
userToken,
|
userToken,
|
||||||
|
|||||||
Reference in New Issue
Block a user