From b3ba4edd69125d9f67bfe7aa7618b22ccccc57bb Mon Sep 17 00:00:00 2001 From: Tobias Johansson Date: Fri, 23 Aug 2024 12:49:59 +0200 Subject: [PATCH] fix: revert back filtering of reward nights with operaId ORS --- server/routers/user/query.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/server/routers/user/query.ts b/server/routers/user/query.ts index bf2c2eac4..53640009c 100644 --- a/server/routers/user/query.ts +++ b/server/routers/user/query.ts @@ -585,17 +585,7 @@ export const userQueryRouter = router({ ) const pageData = updatedData - .filter((t) => { - if ( - t.type === RewardTransactionTypes.rewardNight && - t.attributes.hotelOperaId === "ORS" - ) { - return false - } - if (t.type === RewardTransactionTypes.expired) return false - - return true - }) + .filter((t) => t.type !== RewardTransactionTypes.expired) .sort((a, b) => { // 'BALFWD' are transactions from Opera migration that happended in May 2021 if (a.attributes.confirmationNumber === "BALFWD") return 1