Added new check for GabTrendsController, ShopController for empty

• Added:
- new check for GabTrendsController, ShopController for empty
This commit is contained in:
mgabdev
2020-07-08 17:41:48 -05:00
parent b33e33362c
commit 22c0957752
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ class Api::V1::ShopController < Api::BaseController
if type == 'featured_products'
body = Redis.current.get("gabstore:featuredproducts")
if body.nil?
if body.nil? || body.empty?
Request.new(:get, "https://shop.dissenter.com/product/group/json").perform do |res|
if res.code == 200
body = res.body_with_limit