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

IMN-869: removed contentType' checks on download #1052

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

Conversation

AsterITA
Copy link
Contributor

@AsterITA AsterITA commented Oct 2, 2024

Closes IMN-869

This PR addresses an issue encountered when downloading documents, where the following error is triggered: Invalid contentType application/pdf for document.

In the Scala implementation, this check was used solely to assign the contentType to the generated HttpEntity. However, in here, we don't need to explicitly set a contentType for the returned object. As a result, this check is no longer necessary.

@@ -359,18 +358,6 @@ export function contractException(agreementId: string): ApiError<ErrorCodes> {
});
}

export function invalidContentType(
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can also remove invalidRiskAnalysisContentType which is an error similar to this one, probably unused now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants