Skip to content

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
R0tenur committed Oct 20, 2023
1 parent c559073 commit 0f92458
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/services/builder.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ const getRelation = (column: DatabaseColumn) => {

const formatConstraints = (element?: string[]) =>
element
?.map((c) => (c === "PRIMARY KEY" ? "PK" : c === "FOREIGN KEY" ? "FK" : ""))
?.map((c) => (c === "PRIMARY KEY" ? "PK" : c))
?.map((c) => (c === "FOREIGN KEY" ? "FK" : ""))
.filter((c) => !!c)
.join(", ") || "";

Expand Down

0 comments on commit 0f92458

Please sign in to comment.