Skip to content

Commit b4ef025

Browse files
feat(typegen): go: format
1 parent d625118 commit b4ef025

File tree

1 file changed

+8
-5
lines changed
  • src/server/templates

1 file changed

+8
-5
lines changed

src/server/templates/go.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ export const apply = ({
2323
}: GeneratorMetadata): string => {
2424
const columnsByTableId = columns
2525
.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[]>)
26+
.reduce(
27+
(acc, curr) => {
28+
acc[curr.table_id] ??= []
29+
acc[curr.table_id].push(curr)
30+
return acc
31+
},
32+
{} as Record<string, PostgresColumn[]>
33+
)
3134

3235
const compositeTypes = types.filter((type) => type.attributes.length > 0)
3336

0 commit comments

Comments
 (0)