File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -838,7 +838,8 @@ PostgreSQL.prototype.buildJoin = function(model, filter) {
838
838
break ;
839
839
}
840
840
841
- if ( candidateRelation in modelDefinition . settings . __hiddenRelations__ ) {
841
+ if ( Array . isArray ( modelDefinition . settings . __hiddenRelations__ ) &&
842
+ modelDefinition . settings . __hiddenRelations__ . includes ( candidateRelation ) ) {
842
843
debug ( 'Hidden relation for model %s skipping' , parentModel ) ;
843
844
break ;
844
845
}
@@ -1083,7 +1084,8 @@ PostgreSQL.prototype._buildWhere = function(model, filter) {
1083
1084
}
1084
1085
let p = props [ key ] ;
1085
1086
1086
- if ( p in modelDefinition . settings . __hiddenProps__ ) {
1087
+ if ( Array . isArray ( modelDefinition . settings . __hiddenProps__ ) &&
1088
+ modelDefinition . settings . __hiddenProps__ . includes ( p ) ) {
1087
1089
debug ( 'Hidden prop for model %s skipping' , model ) ;
1088
1090
continue ;
1089
1091
}
You can’t perform that action at this time.
0 commit comments