Skip to content

Commit

Permalink
fix guestcard assignment null reference
Browse files Browse the repository at this point in the history
  • Loading branch information
RudiThoeni committed Dec 3, 2024
1 parent ab605b3 commit 859f337
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OdhApiImporter/Helpers/RAVEN/LtsApiv2Operations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ private static async Task AssignGuestcardDataFromNewLtsApi(AccommodationV2 accom
if(accommodation.TagIds == null)
accommodation.TagIds = new HashSet<string>();

if (accommodation.SmgTags == null)
accommodation.SmgTags = new List<string>();

//IF guestcard active Add Tag "guestcard"
if (guestcardactive == null || guestcardactive == false)
{
Expand Down

0 comments on commit 859f337

Please sign in to comment.