@@ -69,32 +69,32 @@ GROUP BY
6969 technology,
7070 version
7171` ) . postOps ( ctx => `
72- SELECT
73- reports.run_export_job(
74- JSON '''{
75- "destination": "firestore",
76- "config": {
77- "database": "tech-report-api-${ constants . environment } ",
78- "collection": "page_weight",
79- "type": "report",
80- "date": "${ pastMonth } "
81- },
82- "query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ ctx . self ( ) } WHERE date = '${ pastMonth } '"
83- }'''
84- );
72+ SELECT
73+ reports.run_export_job(
74+ JSON '''{
75+ "destination": "firestore",
76+ "config": {
77+ "database": "tech-report-api-${ constants . environment } ",
78+ "collection": "page_weight",
79+ "type": "report",
80+ "date": "${ pastMonth } "
81+ },
82+ "query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ ctx . self ( ) } WHERE date = '${ pastMonth } '"
83+ }'''
84+ );
8585
86- -- legacy export for tech-report-apis
87- SELECT
88- reports.run_export_job(
89- JSON '''{
90- "destination": "firestore",
91- "config": {
92- "database": "tech-report-apis-${ constants . environment } ",
93- "collection": "page_weight",
94- "type": "report",
95- "date": "${ pastMonth } "
96- },
97- "query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ ctx . self ( ) } WHERE date = '${ pastMonth } ' AND version = 'ALL'"
98- }'''
99- );
100- `)
86+ -- legacy export for tech-report-apis
87+ SELECT
88+ reports.run_export_job(
89+ JSON '''{
90+ "destination": "firestore",
91+ "config": {
92+ "database": "tech-report-apis-${ constants . environment } ",
93+ "collection": "page_weight",
94+ "type": "report",
95+ "date": "${ pastMonth } "
96+ },
97+ "query": "SELECT STRING(date) AS date, page_weight AS pageWeight, * EXCEPT(date, version, page_weight ) FROM ${ ctx . self ( ) } WHERE date = '${ pastMonth } ' AND version = 'ALL'"
98+ }'''
99+ );
100+ ` )
0 commit comments