Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Igal Klebanov <[email protected]>
  • Loading branch information
2 people authored and koskimas committed May 27, 2023
1 parent 6fcad07 commit 621b130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query-compiler/compiled-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export interface CompiledQuery<O = unknown> {
}

export const CompiledQuery = freeze({
raw(sql: string, ...parameters: unknown[]): CompiledQuery {
raw(sql: string, parameters: unknown[] = []): CompiledQuery {
return freeze({
sql,
query: RawNode.createWithSql(sql),
parameters: freeze(parameters ?? []),
parameters: freeze(parameters),
})
},
})

0 comments on commit 621b130

Please sign in to comment.