mirror of https://gitee.com/bigwinds/arangodb
Less magic.
This commit is contained in:
parent
03ccf67269
commit
eb30d2aad0
|
@ -108,13 +108,7 @@ Repository = function (collection, opts) {
|
|||
configurable: false,
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
var schema = this.model.prototype.schema;
|
||||
if (schema && schema.isJoi) {
|
||||
return _.object(_.map(schema._inner.children, function (prop) {
|
||||
return [prop.key, prop.schema];
|
||||
}));
|
||||
}
|
||||
return schema;
|
||||
return this.model.prototype.schema;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue