server: rebuild runtime (colorsJson fix)
This commit is contained in:
+15
-13
@@ -131920,6 +131920,19 @@ var require_product_color_json_dto = __commonJS({
|
||||
(0, class_validator_1.IsString)({ each: true }),
|
||||
__metadata2("design:type", Array)
|
||||
], ProductColorJsonItemDto.prototype, "imageUrls", void 0);
|
||||
function mergeColorImageUrls(imageUrls, imageUrl) {
|
||||
const merged = [];
|
||||
const push = /* @__PURE__ */ __name((u) => {
|
||||
const t = u?.trim();
|
||||
if (t && !merged.includes(t))
|
||||
merged.push(t);
|
||||
}, "push");
|
||||
for (const u of imageUrls ?? [])
|
||||
push(u);
|
||||
push(imageUrl);
|
||||
return merged;
|
||||
}
|
||||
__name(mergeColorImageUrls, "mergeColorImageUrls");
|
||||
function transformColorsJson(value) {
|
||||
if (value === void 0 || value === null)
|
||||
return void 0;
|
||||
@@ -131950,19 +131963,6 @@ var require_product_color_json_dto = __commonJS({
|
||||
return out;
|
||||
}
|
||||
__name(transformColorsJson, "transformColorsJson");
|
||||
function mergeColorImageUrls(imageUrls, imageUrl) {
|
||||
const merged = [];
|
||||
const push = /* @__PURE__ */ __name((u) => {
|
||||
const t = u?.trim();
|
||||
if (t && !merged.includes(t))
|
||||
merged.push(t);
|
||||
}, "push");
|
||||
for (const u of imageUrls ?? [])
|
||||
push(u);
|
||||
push(imageUrl);
|
||||
return merged;
|
||||
}
|
||||
__name(mergeColorImageUrls, "mergeColorImageUrls");
|
||||
function serializeColorsJsonForDb(raw2, fallbackColor) {
|
||||
if (raw2 === void 0 || raw2 === null)
|
||||
return void 0;
|
||||
@@ -132581,6 +132581,7 @@ var require_product_dto = __commonJS({
|
||||
], CreateProductDto.prototype, "isNew", void 0);
|
||||
__decorate2([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_transformer_1.Transform)(({ value }) => (0, product_color_json_dto_1.transformColorsJson)(value)),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
(0, class_validator_1.ValidateNested)({ each: true }),
|
||||
(0, class_transformer_1.Type)(() => product_color_json_dto_1.ProductColorJsonItemDto),
|
||||
@@ -132605,6 +132606,7 @@ var require_product_dto = __commonJS({
|
||||
exports2.UpdateProductDto = UpdateProductDto;
|
||||
__decorate2([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_transformer_1.Transform)(({ value }) => (0, product_color_json_dto_1.transformColorsJson)(value)),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
(0, class_validator_1.ValidateNested)({ each: true }),
|
||||
(0, class_transformer_1.Type)(() => product_color_json_dto_1.ProductColorJsonItemDto),
|
||||
|
||||
Reference in New Issue
Block a user