-
Notifications
You must be signed in to change notification settings - Fork 0
[TM-1772] Implement file / media GET in v3 #122
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
base: staging
Are you sure you want to change the base?
Conversation
apps/entity-service/src/entities/processors/association-processor.ts
Outdated
Show resolved
Hide resolved
apps/entity-service/src/entities/processors/association-processor.ts
Outdated
Show resolved
Hide resolved
libs/common/src/lib/decorators/transform-boolean-string.decorator.ts
Outdated
Show resolved
Hide resolved
entityType: additional.entityType, | ||
entityUuid: additional.entityUuid, | ||
url: additional.url, | ||
thumbUrl: additional.thumbUrl, |
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.
These should be covered by ...additional
above and do not need to be specified separately.
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.
unfortunately it is because of typescript, I just updated.
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.
I think this is not the right solution. If you look at the particulars of the error that TS gives you, it's legitimately flagging that url
is optional in the additional props, but required in the DTO. That's a real error, and it should be addressed appropriately with an update to the DTO, or a default value.
...additional | ||
...additional, | ||
entityType: additional.entityType, | ||
entityUuid: additional.entityUuid |
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.
These are covered by ...additional
above and do not need to be specified separately.
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.
unfortunately it is because of typescript, I just updated.
Task Link