Skip to content

Commit

Permalink
Update queryHelpers.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hellno committed Sep 12, 2024
1 parent cc1326b commit 90ac6fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions supabase/functions/_shared/queryHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ export function buildAnalyticsQuery(
const additionalColumnsSelect =
additionalColumns.length > 0
? sql`, ${sql.join(
additionalColumns.map((col) => sql.raw(col)),
sql`, `
)}`
additionalColumns.map((col) => sql.raw(col)),
sql`, `
)}`
: sql``;
const additionalColumnsGroupBy =
additionalColumns.length > 0
? sql`, ${sql.join(
additionalColumns.map((col) => sql.raw(col.split(' ').pop()!)),
sql`, `
)}`
additionalColumns.map((col) => sql.raw(col.split(' ').pop()!)),
sql`, `
)}`
: sql``;

console.log('buildAnalyticsQuery', fid, tableName, additionalColumns);
Expand Down

0 comments on commit 90ac6fb

Please sign in to comment.