> For the complete documentation index, see [llms.txt](https://changelog.airship.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://changelog.airship.co.uk/august-2025/21-08-2025-opt-in-for-email-in-hls-not-updating-in-airship.md).

# 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`&#x20;
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.

:man\_technologist: Lee
