Skip to content

Commit 424ee36

Browse files
committed
chore: npm run format
1 parent 711c857 commit 424ee36

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/server/templates/typescript.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,20 @@ export interface Database {
150150
}
151151
Relationships: [
152152
${relationships
153-
.filter((relationship) => relationship.schema === table.schema && relationship.relation === table.name)
154-
.map((relationship) => `{
153+
.filter(
154+
(relationship) =>
155+
relationship.schema === table.schema &&
156+
relationship.relation === table.name
157+
)
158+
.map(
159+
(relationship) => `{
155160
foreignKeyName: ${JSON.stringify(relationship.foreign_key_name)}
156161
columns: ${JSON.stringify(relationship.columns)}
157162
referencedSchema: ${JSON.stringify(relationship.referenced_schema)}
158163
referencedRelation: ${JSON.stringify(relationship.referenced_relation)}
159164
referencedColumns: ${JSON.stringify(relationship.referenced_columns)}
160-
}`)
161-
}
165+
}`
166+
)}
162167
]
163168
}`
164169
)

0 commit comments

Comments
 (0)