From 1313849847730f1c41046bc10854e5997c6dd8c1 Mon Sep 17 00:00:00 2001 From: merdan Date: Tue, 23 Jan 2024 16:44:00 +0500 Subject: [PATCH] weight removed --- repositories/ParseRepository.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repositories/ParseRepository.go b/repositories/ParseRepository.go index 1360dd6..acba9f3 100644 --- a/repositories/ParseRepository.go +++ b/repositories/ParseRepository.go @@ -209,7 +209,7 @@ func CreateJSONFromModel(model models.TrendyolProductDetailModel) map[string]int json := map[string]interface{}{} // get weight from categories (Stored in helper array (RAM)) - weight := helper.GetCategoryWeight(model.Category.BeautifiedName) + //weight := helper.GetCategoryWeight(model.Category.BeautifiedName) productGroupId := strconv.Itoa(model.ProductGroupID) json["_id"] = productGroupId @@ -221,7 +221,7 @@ func CreateJSONFromModel(model models.TrendyolProductDetailModel) map[string]int json["name"] = model.Name json["sellable"] = model.IsSellable json["favorite_count"] = model.FavoriteCount - json["weight"] = weight + //json["weight"] = weight json["name_with_product_code"] = model.NameWithProductCode json["url_key"] = "https://www.trendyol.com" + model.URL json["images"] = model.Images