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':
val = utils.toRegExp(val);
if (val instanceof Error) {
result.statusCode = 400;
val.statusCode = 400;
throw err;
}
break;

View File

@ -111,7 +111,7 @@ ModelDefinition.prototype.columnNames = function (connectorType) {
var cols = [];
for (var p in props) {
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 {
cols.push(p);
}