We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d625118 commit b4ef025Copy full SHA for b4ef025
src/server/templates/go.ts
@@ -23,11 +23,14 @@ export const apply = ({
23
}: GeneratorMetadata): string => {
24
const columnsByTableId = columns
25
.sort(({ name: a }, { name: b }) => a.localeCompare(b))
26
- .reduce((acc, curr) => {
27
- acc[curr.table_id] ??= []
28
- acc[curr.table_id].push(curr)
29
- return acc
30
- }, {} as Record<string, PostgresColumn[]>)
+ .reduce(
+ (acc, curr) => {
+ acc[curr.table_id] ??= []
+ acc[curr.table_id].push(curr)
+ return acc
31
+ },
32
+ {} as Record<string, PostgresColumn[]>
33
+ )
34
35
const compositeTypes = types.filter((type) => type.attributes.length > 0)
36
0 commit comments