Skip to content

Commit

Permalink
fix bug in get places/brands where no brand name
Browse files Browse the repository at this point in the history
  • Loading branch information
AdenForshaw committed Nov 15, 2024
1 parent a3192d7 commit 2c2e66f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bigquery/bigquery.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export class BigQueryService {
const {rows} = await this.runQuery(query);

return rows.map((row: any) => ({
names: row.brand.names,
wikidata: row.brand.wikidata,
names: row.brand?.names,
wikidata: row.brand?.wikidata,
counts:{
places: row.count_places
}
Expand Down

0 comments on commit 2c2e66f

Please sign in to comment.