Commit e4a0e52fa70101821f119d38ae16ec48ef810c28

Authored by Adhidarma Hadiwinoto
1 parent 01545d1930
Exists in master

JSON product hanya produk utama

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

lib/webservice/router/product.js
... ... @@ -13,6 +13,9 @@ function pageJson(req, res) {
13 13 LEFT JOIN service ON service.svc_id = product.svc_id
14 14 WHERE
15 15 service.svc_cat IN (1, 6)
  16 + AND product.site_id IS NULL -- produk utama
  17 + AND product.area_gid IS NULL -- produk utama
  18 + AND product.route IS NULL -- produk utama
16 19 ORDER BY SOUNDEX(service.keyword), LENGTH(service.keyword), service.keyword;
17 20 `.trim();
18 21