Merged in fix/revert-filtering-of-rewardnights (pull request #477)
fix: revert back filtering of reward nights with operaId ORS Approved-by: Michael Zetterberg
This commit is contained in:
@@ -585,17 +585,7 @@ export const userQueryRouter = router({
|
|||||||
)
|
)
|
||||||
|
|
||||||
const pageData = updatedData
|
const pageData = updatedData
|
||||||
.filter((t) => {
|
.filter((t) => t.type !== RewardTransactionTypes.expired)
|
||||||
if (
|
|
||||||
t.type === RewardTransactionTypes.rewardNight &&
|
|
||||||
t.attributes.hotelOperaId === "ORS"
|
|
||||||
) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if (t.type === RewardTransactionTypes.expired) return false
|
|
||||||
|
|
||||||
return true
|
|
||||||
})
|
|
||||||
.sort((a, b) => {
|
.sort((a, b) => {
|
||||||
// 'BALFWD' are transactions from Opera migration that happended in May 2021
|
// 'BALFWD' are transactions from Opera migration that happended in May 2021
|
||||||
if (a.attributes.confirmationNumber === "BALFWD") return 1
|
if (a.attributes.confirmationNumber === "BALFWD") return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user