Skip to content

Commit 044c9c7

Browse files
committed
conditional path
1 parent 00a4b4e commit 044c9c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

infra/bigquery-export/reports.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export class ReportsExporter {
66
constructor () {
77
this.bigquery = new BigQueryExport()
88
this.storage = new StorageExport()
9-
this.storagePath = 'reports/dev/' // TODO change to prod
109
}
1110

1211
// Export timeseries reports
@@ -42,6 +41,8 @@ WHERE date = '${date}'
4241
return
4342
}
4443

44+
this.storagePath = 'reports/' + exportConfig.environment !== 'prod' ? 'dev/' : ''
45+
4546
if (exportConfig.lense && exportConfig.lense !== 'all') {
4647
this.storagePath = this.storagePath + `${exportConfig.lense}/`
4748
}

0 commit comments

Comments
 (0)