From 0f92458291f1e0ec6c500e6e66704843a5588b54 Mon Sep 17 00:00:00 2001 From: Jens Hunt Date: Fri, 20 Oct 2023 09:14:26 +0200 Subject: [PATCH] refactor: cleanup --- backend/src/services/builder.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/services/builder.service.ts b/backend/src/services/builder.service.ts index e934958..26cfebe 100644 --- a/backend/src/services/builder.service.ts +++ b/backend/src/services/builder.service.ts @@ -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(", ") || "";