Skip to content

Commit

Permalink
Add projectId for BigQuery (deprecated Viewership API) (#196)
Browse files Browse the repository at this point in the history
* Add projectId for BigQuery (deprecated Viewership API)

* Remove X-Livepeer-Is-Project-Default
  • Loading branch information
leszko authored Jul 1, 2024
1 parent b4b7663 commit 90f0aaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions views/bigquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ func buildViewsEventsQuery(table string, spec QuerySpec) (string, []interface{},
From(table).
Where("account_id = ?", spec.Filter.UserID).
Limit(maxBigQueryResultRows + 1)
if spec.Filter.ProjectID != "" {
query = query.Where("project_id = ?", spec.Filter.ProjectID)
}
query = withPlaybackIdFilter(query, spec.Filter.PlaybackID)

if spec.Detailed {
Expand Down

0 comments on commit 90f0aaa

Please sign in to comment.