Skip to content

Commit

Permalink
Merge branch '2.6' of https://github.com/steedos/steedos-platform int…
Browse files Browse the repository at this point in the history
…o 2.6
  • Loading branch information
baozhoutao committed Jan 30, 2024
2 parents 72e65bc + 00facb6 commit 51ceb11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/service-object-graphql/src/getGraphqlActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ export async function translateToUI(objConfig, doc, userSession: any, selectorFi
fileValue = _.map(fileRecords, (fileRecord) => {
return {
name: fileRecord.original?.name,
url: absoluteUrl(`/api/files/${storageName}/${fileRecord._id}/${fileRecord.original?.name}${optionsStr}`),
url: absoluteUrl(`/api/files/${storageName}/${fileRecord._id}${optionsStr}`),
size: fileRecord.original?.size,
type: fileRecord.original?.type,
};
Expand All @@ -759,7 +759,7 @@ export async function translateToUI(objConfig, doc, userSession: any, selectorFi
if (fileRecord) {
fileValue = {
name: fileRecord["original"]["name"],
url: absoluteUrl(`/api/files/${storageName}/${value}/${fileRecord.original?.name}${optionsStr}`),
url: absoluteUrl(`/api/files/${storageName}/${value}${optionsStr}`),
size: fileRecord.original?.size,
type: fileRecord.original?.type
};
Expand Down

0 comments on commit 51ceb11

Please sign in to comment.