Skip to content

Commit

Permalink
fix(database): mongoose extractObjectType issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kkopanidis committed Mar 7, 2023
1 parent d3343fa commit 8db5088
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function iterDeep(schema: any) {
}

function extractObjectType(objectField: any) {
if (!objectField.hasOwnProperty('type')) return objectField;
const res: {
type?: any;
default?: any;
Expand Down

0 comments on commit 8db5088

Please sign in to comment.