From d3e1ea47bd8af01738d33ed1fec98ad40fcb4aa6 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 27 Mar 2019 12:24:49 -0500 Subject: [PATCH] include change type --- route_sql/build/list_changes_table.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route_sql/build/list_changes_table.sql b/route_sql/build/list_changes_table.sql index 3011b65..a6b7bfa 100644 --- a/route_sql/build/list_changes_table.sql +++ b/route_sql/build/list_changes_table.sql @@ -1,7 +1,7 @@ SELECT iterdef->>'user' "user", (iterdef->>'stamp')::timestamptz "stamp", - iterdef->>'mesasage' "comment", + iterdef->>'type' "type", round(SUM(fb_val_loc * r_rate)::numeric,2) sales, jsonb_pretty(iterdef) def FROM @@ -11,7 +11,7 @@ WHERE GROUP BY iterdef->>'user', iterdef->>'stamp', - iterdef->>'message', + iterdef->>'type', iterdef ORDER BY "stamp" DESC