Skip to content

Commit

Permalink
fix: or-1394 use beschrijving field instead of code
Browse files Browse the repository at this point in the history
  • Loading branch information
koenmetsu committed Aug 14, 2024
1 parent 5c19283 commit 31f1b62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public MagdaOrganisationResponse(Onderneming2_0Type? onderneming, IDateTimeProvi
if (onderneming?.Stopzetting != null)
Termination = new MagdaTermination(onderneming.Stopzetting);

LegalEntityType = new MagdaLegalEntityType(onderneming?.SoortOnderneming.Code.Value, onderneming?.SoortOnderneming.Omschrijving.Value);
LegalEntityType = new MagdaLegalEntityType(onderneming?.SoortOnderneming.Code.Value, onderneming?.SoortOnderneming.Code.Beschrijving);

Check warning on line 73 in src/OrganisationRegistry.Api/Infrastructure/Magda/MagdaOrganisationResponse.cs

View workflow job for this annotation

GitHub Actions / Test

Possible null reference argument for parameter 'description' in 'MagdaLegalEntityType.MagdaLegalEntityType(string code, string description)'.

Check warning on line 73 in src/OrganisationRegistry.Api/Infrastructure/Magda/MagdaOrganisationResponse.cs

View workflow job for this annotation

GitHub Actions / Build api / build-image

Possible null reference argument for parameter 'code' in 'MagdaLegalEntityType.MagdaLegalEntityType(string code, string description)'.

Check warning on line 73 in src/OrganisationRegistry.Api/Infrastructure/Magda/MagdaOrganisationResponse.cs

View workflow job for this annotation

GitHub Actions / Build api / build-image

Possible null reference argument for parameter 'description' in 'MagdaLegalEntityType.MagdaLegalEntityType(string code, string description)'.

Check warning on line 73 in src/OrganisationRegistry.Api/Infrastructure/Magda/MagdaOrganisationResponse.cs

View workflow job for this annotation

GitHub Actions / Build api / build-image

Possible null reference argument for parameter 'code' in 'MagdaLegalEntityType.MagdaLegalEntityType(string code, string description)'.

Check warning on line 73 in src/OrganisationRegistry.Api/Infrastructure/Magda/MagdaOrganisationResponse.cs

View workflow job for this annotation

GitHub Actions / Build api / build-image

Possible null reference argument for parameter 'description' in 'MagdaLegalEntityType.MagdaLegalEntityType(string code, string description)'.
}

private static bool OverlapsWithToday(RechtsvormExtentieType type, DateTime today)
Expand Down

0 comments on commit 31f1b62

Please sign in to comment.