This commit is contained in:
Myat Zin Wai Maw
2020-03-06 11:31:11 +06:30
parent 926c12d90d
commit 03fe9e43f2
2 changed files with 4 additions and 3 deletions

View File

@@ -3,8 +3,7 @@ class Api::ShopsController < Api::ApiController
skip_before_action :set_current_tenant_by_subdomain_or_name, only: [:index, :show]
def index
@shops = Shop.select('shops.id, logo, shops.name, shops.shop_code')
# @shops = Shop.select('id, logo, name, shop_code').where.not(cloud_url: nil).all
@shops = Shop.select('id, logo, name, shop_code').where.not(cloud_url: nil).all
end
def show