From 10c250695a6f46f319b7319c6ebfc5cff50067fc Mon Sep 17 00:00:00 2001 From: merdan Date: Wed, 3 May 2023 15:26:04 +0500 Subject: [PATCH] weight fix --- repositories/ParseRepository.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repositories/ParseRepository.go b/repositories/ParseRepository.go index 99fbb4a..43a269e 100644 --- a/repositories/ParseRepository.go +++ b/repositories/ParseRepository.go @@ -208,7 +208,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 @@ -220,7 +220,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"] = 0 json["name_with_product_code"] = model.NameWithProductCode json["url_key"] = "https://www.trendyol.com" + model.URL json["images"] = model.Images