Skip to content

Commit

Permalink
fix: pass dummyKey to canParse
Browse files Browse the repository at this point in the history
  • Loading branch information
matiaslopezd committed May 2, 2024
1 parent 5fcdc05 commit 44e2e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class MongooseDummy {
iterate(schema, output = {}, iteration = 0, filter = () => true) {
const { paths } = schema;
for (const schemaType of Object.values(paths)) {
if (this.constructor.canParse(schemaType) && this.constructor.query(schemaType, filter)) {
if (this.constructor.canParse(schemaType, this.config.dummyKey) && this.constructor.query(schemaType, filter)) {
schemaType
.path
.split('.')
Expand Down

0 comments on commit 44e2e73

Please sign in to comment.