diff --git a/route_sql/addmonth_vupd.sql b/route_sql/addmonth_vupd.sql index eb213eb..0bd57c5 100644 --- a/route_sql/addmonth_vupd.sql +++ b/route_sql/addmonth_vupd.sql @@ -337,7 +337,7 @@ SELECT ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" - ,log.doc->>'module' module + ,log.doc->>'type' module FROM basemix b CROSS JOIN vscale s @@ -427,7 +427,7 @@ SELECT ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" - ,log.doc->>'module' module + ,log.doc->>'type' module FROM volume b CROSS JOIN pscale p diff --git a/route_sql/new_basket.sql b/route_sql/new_basket.sql index 32abe7e..192c773 100644 --- a/route_sql/new_basket.sql +++ b/route_sql/new_basket.sql @@ -336,7 +336,7 @@ SELECT ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" - ,log.doc->>'module' module + ,log.doc->>'type' module FROM basemix b CROSS JOIN log diff --git a/route_sql/scale_pd.sql b/route_sql/scale_pd.sql index 99dd156..4b29f15 100644 --- a/route_sql/scale_pd.sql +++ b/route_sql/scale_pd.sql @@ -172,7 +172,7 @@ target AS (select target_increment incr) ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" - ,log.doc->>'module' module + ,log.doc->>'type' module FROM basemix b CROSS JOIN scale s diff --git a/route_sql/scale_vd.sql b/route_sql/scale_vd.sql index e2760b5..03029bc 100644 --- a/route_sql/scale_vd.sql +++ b/route_sql/scale_vd.sql @@ -201,7 +201,7 @@ target AS (select incr_qty qincr) ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" - ,log.doc->>'module' module + ,log.doc->>'type' module FROM basemix b CROSS JOIN scale s diff --git a/route_sql/scale_vupd.sql b/route_sql/scale_vupd.sql index 1923b48..b25755f 100644 --- a/route_sql/scale_vupd.sql +++ b/route_sql/scale_vupd.sql @@ -200,7 +200,7 @@ target AS (select target_vol vincr, target_prc pincr) ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" - ,log.doc->>'module' module + ,log.doc->>'type' module FROM basemix b CROSS JOIN vscale s @@ -281,7 +281,7 @@ FROM ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" - ,log.doc->>'module' module + ,log.doc->>'type' module FROM volume b CROSS JOIN pscale s