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
|
@@ -132,14 +132,20 @@ export class ResolverService {
|
|
|
132
132
|
|
|
133
133
|
// --------UPLOAD / IMAGE --------
|
|
134
134
|
else if (
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
attr.element_type === 'upload' ||
|
|
136
|
+
attr.element_type === 'image'
|
|
137
137
|
) {
|
|
138
138
|
const mediaService = await this.getMediaDataService();
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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.
|
|
163
|
+
uploadData.review_status =
|
|
158
164
|
statusItem?.label || uploadData.review_status;
|
|
159
165
|
}
|
|
160
166
|
|