Skip to content
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

MIJN-9702-CHORE/BAG-endpoint-vervangen-ivm-deprecation-huidig-endpoint #1680

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

RoanPaulus
Copy link
Contributor

No description provided.

@RoanPaulus RoanPaulus force-pushed the MIJN-9702-CHORE/BAG-endpoint-vervangen-ivm-deprecation-huidig-endpoint branch 4 times, most recently from c34bcd4 to 48cb931 Compare December 19, 2024 12:43
@RoanPaulus RoanPaulus marked this pull request as ready for review December 19, 2024 13:00
@RoanPaulus RoanPaulus force-pushed the MIJN-9702-CHORE/BAG-endpoint-vervangen-ivm-deprecation-huidig-endpoint branch from 2504892 to 825e877 Compare December 19, 2024 15:55
Copy link
Contributor

@timvanoostrom timvanoostrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bijna!

@@ -21,39 +18,35 @@ export async function fetchBAG(
requestID: RequestID,
sourceAddress: Adres | null
) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explicit return type mist

const isWeesp = sourceAddress.woonplaatsNaam === 'Weesp';
const data = responseData._embedded?.adresseerbareobjecten;
if (!data || data.length < 1) {
return {};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Liever null teruggeven

src/server/services/bag.ts Outdated Show resolved Hide resolved
src/server/services/bag.ts Outdated Show resolved Hide resolved
src/server/services/bag.ts Outdated Show resolved Hide resolved
RoanPaulus and others added 3 commits December 19, 2024 17:14
Co-authored-by: Tim van Oostrom <t.van.oostrom@amsterdam.nl>
Co-authored-by: Tim van Oostrom <t.van.oostrom@amsterdam.nl>
Co-authored-by: Tim van Oostrom <t.van.oostrom@amsterdam.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants