From fc2f66c51452c1f781a7a01c9c1b5aaeb56e50fe Mon Sep 17 00:00:00 2001 From: destillat Date: Wed, 5 Apr 2017 22:12:27 +0300 Subject: [PATCH] Fix model def column name method (#1224) --- lib/model-definition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model-definition.js b/lib/model-definition.js index 280caa54..90391144 100644 --- a/lib/model-definition.js +++ b/lib/model-definition.js @@ -117,7 +117,7 @@ ModelDefinition.prototype.columnNames = function(connectorType) { var cols = []; for (var p in props) { if (props[p][connectorType]) { - cols.push(props[connectorType].column || props[p][connectorType].columnName || p); + cols.push(props[p][connectorType].column || props[p][connectorType].columnName || p); } else { cols.push(p); }