This commit is contained in:
Clark Wang 2015-11-04 14:58:28 +08:00
parent b993fb9466
commit b1b36ed44e
2 changed files with 2 additions and 2 deletions

View File

@ -1211,7 +1211,7 @@ DataAccessObject._coerce = function (where) {
case 'regexp': case 'regexp':
val = utils.toRegExp(val); val = utils.toRegExp(val);
if (val instanceof Error) { if (val instanceof Error) {
result.statusCode = 400; val.statusCode = 400;
throw err; throw err;
} }
break; break;

View File

@ -111,7 +111,7 @@ ModelDefinition.prototype.columnNames = function (connectorType) {
var cols = []; var cols = [];
for (var p in props) { for (var p in props) {
if (props[p][connectorType]) { if (props[p][connectorType]) {
cols.push(property[connectorType].column || props[p][connectorType].columnName || p); cols.push(props[connectorType].column || props[p][connectorType].columnName || p);
} else { } else {
cols.push(p); cols.push(p);
} }