Skip to content

Commit

Permalink
remove required field mitigation measure (not needed in 121 anymore)
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsziere committed Jan 22, 2025
1 parent b432832 commit b2d84fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions routes/routes121.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ async def kobo_to_121(request: Request, dependencies=Depends(required_headers_12
payload[target_field] = clean_text(kobo_data[kobo_field])
elif target_field == "fspName":
payload["programFinancialServiceProviderConfigurationName"] = kobo_data[kobo_field]
elif kobo_value_url not in attachments.keys():
elif kobo_value_url not in attachments.keys() and kobo_data[kobo_field] != "":
payload[target_field] = kobo_data[kobo_field]
else:
payload[target_field] = attachments[kobo_value_url]["url"]
else:
payload[target_field] = ""

payload["referenceId"] = referenceId

Expand Down

0 comments on commit b2d84fa

Please sign in to comment.