@@ -100,32 +100,32 @@ GROUP BY
100100 technology,
101101 version
102102` ) . postOps ( ctx => `
103- SELECT
104- reports.run_export_job(
105- JSON '''{
106- "destination": "firestore",
107- "config": {
108- "database": "tech-report-api-${ constants . environment } ",
109- "collection": "core_web_vitals",
110- "type": "report",
111- "date": "${ pastMonth } "
112- },
113- "query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ ctx . self ( ) } WHERE date = '${ pastMonth } '"
114- }'''
115- );
103+ SELECT
104+ reports.run_export_job(
105+ JSON '''{
106+ "destination": "firestore",
107+ "config": {
108+ "database": "tech-report-api-${ constants . environment } ",
109+ "collection": "core_web_vitals",
110+ "type": "report",
111+ "date": "${ pastMonth } "
112+ },
113+ "query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ ctx . self ( ) } WHERE date = '${ pastMonth } '"
114+ }'''
115+ );
116116
117- -- legacy export to tech-report-apis database
118- SELECT
119- reports.run_export_job(
120- JSON '''{
121- "destination": "firestore",
122- "config": {
123- "database": "tech-report-apis-${ constants . environment } ",
124- "collection": "core_web_vitals",
125- "type": "report",
126- "date": "${ pastMonth } "
127- },
128- "query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ ctx . self ( ) } WHERE date = '${ pastMonth } ' AND version = 'ALL'"
129- }'''
130- );
131- `)
117+ -- legacy export to tech-report-apis database
118+ SELECT
119+ reports.run_export_job(
120+ JSON '''{
121+ "destination": "firestore",
122+ "config": {
123+ "database": "tech-report-apis-${ constants . environment } ",
124+ "collection": "core_web_vitals",
125+ "type": "report",
126+ "date": "${ pastMonth } "
127+ },
128+ "query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ ctx . self ( ) } WHERE date = '${ pastMonth } ' AND version = 'ALL'"
129+ }'''
130+ );
131+ ` )
0 commit comments