Skip to content

Commit

Permalink
Merge pull request #475 from noi-techpark/main
Browse files Browse the repository at this point in the history
fix guestcard assignment null reference
  • Loading branch information
RudiThoeni authored Dec 3, 2024
2 parents b7a6c18 + 859f337 commit a59503b
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 a59503b

Please sign in to comment.