21/08/2025 - Opt-in for Email in HLS not updating in Airship

Change to the contact service affects opt-ins across all accounts.

Previously, the logic to handle contact stays, and booking updates was combined with the code used to handle historic data; causing changes in opt in status during a booking / stays update to be ignored

  1. extracted the code logic for stays and booking updates to a separate function handleOptInsOnBookingsAndStays

  2. new method only sets opt in status (Y) during a booking/stays update, will ignore attempts to unset to (N)

  3. historic data rule still works as originally intended. If the rule is provided then this takes precedence over the handling of booking and stays data.

👨‍💻 Lee

Last updated