rez_core 5.0.228 → 5.0.231

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "5.0.228",
3
+ "version": "5.0.231",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -132,14 +132,20 @@ export class ResolverService {
132
132
 
133
133
  // --------UPLOAD / IMAGE --------
134
134
  else if (
135
- (attr.element_type === 'upload' || attr.element_type === 'image') &&
136
- typeof resolvedEntityData[field] !== 'object'
135
+ attr.element_type === 'upload' ||
136
+ attr.element_type === 'image'
137
137
  ) {
138
138
  const mediaService = await this.getMediaDataService();
139
- const uploadData = await mediaService.getMediaDownloadUrl(
140
- resolvedEntityData[field],
141
- loggedInUser,
142
- );
139
+
140
+ let uploadData: any;
141
+ if (typeof resolvedEntityData[field] !== 'object') {
142
+ uploadData = await mediaService.getMediaDownloadUrl(
143
+ resolvedEntityData[field],
144
+ loggedInUser,
145
+ );
146
+ } else {
147
+ uploadData = resolvedEntityData[field];
148
+ }
143
149
 
144
150
  // uploadData resolve review_status
145
151
 
@@ -154,7 +160,7 @@ export class ResolverService {
154
160
  const statusItem = options.find(
155
161
  (opt) => opt.value == uploadData.review_status,
156
162
  );
157
- uploadData.review_status_label =
163
+ uploadData.review_status =
158
164
  statusItem?.label || uploadData.review_status;
159
165
  }
160
166