Skip to content

Commit

Permalink
add refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Nov 19, 2024
1 parent d32dca1 commit 6b6199a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ CREATE OR REPLACE VIEW "public"."analytics_summary" AS
((al.allow_list_answers -> 'service.type'::text))::text AS pre_app_service_type,
((al.allow_list_answers -> 'application.information.harmful'::text))::text AS pre_app_harmful_info,
((al.allow_list_answers -> 'application.information.sensitive'::text))::text AS pre_app_sensitive_info,
(((al.allow_list_answers -> 'application.type'::text) -> 0))::text AS application_type,
(((al.allow_list_answers -> 'applicant.researchOptIn'::text) -> 0))::text AS applicant_research_opt_in
al.allow_list_answers -> 'application.type' ->> 0 AS application_type,
al.allow_list_answers -> 'applicant.researchOptIn' ->> 0 AS applicant_research_opt_in
FROM (((analytics a
LEFT JOIN analytics_logs al ON ((a.id = al.analytics_id)))
LEFT JOIN flows f ON ((a.flow_id = f.id)))
Expand Down Expand Up @@ -142,8 +142,8 @@ CREATE OR REPLACE VIEW "public"."submission_services_summary" AS
((ls.allow_list_answers -> 'service.type'::text))::text AS pre_app_service_type,
((ls.allow_list_answers -> 'application.information.harmful'::text))::text AS pre_app_harmful_info,
((ls.allow_list_answers -> 'application.information.sensitive'::text))::text AS pre_app_sensitive_info,
(((ls.allow_list_answers -> 'application.type'::text) -> 0))::text AS application_type,
(((ls.allow_list_answers -> 'applicant.researchOptIn'::text) -> 0))::text AS applicant_research_opt_in
ls.allow_list_answers -> 'application.type' ->> 0 AS application_type,
ls.allow_list_answers -> 'applicant.researchOptIn' ->> 0 AS applicant_research_opt_in
FROM (((((((((lowcal_sessions ls
LEFT JOIN flows f ON ((f.id = ls.flow_id)))
LEFT JOIN teams t ON ((t.id = f.team_id)))
Expand Down

0 comments on commit 6b6199a

Please sign in to comment.