-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: or-2031 registreer inschrijving when adding kbo verenigingen #633
Conversation
to be deployed after json-ld deploy |
e2f18b4
to
d0422cc
Compare
var duplicateResult = await CheckForDuplicate(command.KboNummer); | ||
|
||
if (duplicateResult.IsFailure()) return duplicateResult; | ||
|
||
var vereniging = await _magdaGeefVerenigingService.GeefVereniging(command.KboNummer, message.Metadata, cancellationToken); | ||
var registreerInschrijvingResult = await RegistreerInschrijving(command.KboNummer, message.Metadata, cancellationToken); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why trycatch -> return Result -> throw new?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: let private method RegistreerInschrijving throw.
|
||
return await RegistreerVereniging(vereniging, message.Metadata, cancellationToken); | ||
if (geefVerenigingResult.IsFailure()) throw new GeenGeldigeVerenigingInKbo(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if server stops on this line?
|
||
var response = _mapper.Map(gebeurtenissen); | ||
|
||
return Ok(response); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe return object
Quality Gate passedIssues Measures |
🎉 This PR is included in version 8.79.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.