-
Notifications
You must be signed in to change notification settings - Fork 1
[PER-10392] Update folder with children endpoint #903
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
Changes from all commits
24a539e
55d98a4
d315d07
5aec324
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,7 +93,7 @@ export interface StelaShare { | |
| archive: { | ||
| id: string; | ||
| name: string; | ||
| thumbUrl200: string; | ||
| thumbURL200: string; | ||
| }; | ||
| } | ||
| export type StelaRecord = Omit<RecordVO, 'files'> & { | ||
|
|
@@ -151,7 +151,7 @@ export const convertStelaSharetoShareVO = (stelaShare: StelaShare): ShareVO => | |
| ArchiveVO: { | ||
| archiveId: stelaShare.archive.id, | ||
| fullName: stelaShare.archive.name, | ||
| thumbURL200: stelaShare.archive.thumbUrl200, | ||
| thumbURL200: stelaShare.archive.thumbURL200, | ||
| }, | ||
| }); | ||
|
|
||
|
|
@@ -170,6 +170,10 @@ export const convertStelaRecordToRecordVO = ( | |
| ): RecordVO => | ||
| new RecordVO({ | ||
| ...stelaRecord, | ||
| thumbURL200: stelaRecord.thumbUrl200, | ||
| thumbURL500: stelaRecord.thumbUrl500, | ||
| thumbURL1000: stelaRecord.thumbUrl1000, | ||
| thumbURL2000: stelaRecord.thumbUrl2000, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it, so this is the new mapping.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, it was easier to do this mapping to RecordVO than try to map all URL to camelcase Url. |
||
| TagVOs: (stelaRecord.tags ?? []).map((stelaTag) => | ||
| convertStelaTagToTagVO(stelaTag, stelaRecord.archiveId), | ||
| ), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.