From 0b891eb283dac2bf47279737e028e0f4acf8a0df Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 16 Feb 2021 10:07:15 +0000 Subject: [PATCH] Removing repeated constant. --- packages/builder/src/constants/backend/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/constants/backend/index.js b/packages/builder/src/constants/backend/index.js index 37eb0f82f..02e62e7e2 100644 --- a/packages/builder/src/constants/backend/index.js +++ b/packages/builder/src/constants/backend/index.js @@ -1,3 +1,5 @@ +import { TableNames } from "../index" + export const FIELDS = { STRING: { name: "Text", @@ -117,8 +119,6 @@ export const Roles = { BUILDER: "BUILDER", } -export const USER_TABLE_ID = "ta_users" - export function isAutoColumnUserRelationship(subtype) { return ( subtype === AUTO_COLUMN_SUB_TYPES.CREATED_BY || @@ -163,7 +163,7 @@ export function buildAutoColumn(tableName, name, subtype) { constraints, } if (isAutoColumnUserRelationship(subtype)) { - base.tableId = USER_TABLE_ID + base.tableId = TableNames.USERS base.fieldName = `${tableName}-${name}` } return base