Skip to content

Commit

Permalink
fix(error): remove model property from CastError to avoid printing al…
Browse files Browse the repository at this point in the history
…l model properties to console

Fix #14529
  • Loading branch information
vkarpov15 committed May 5, 2024
1 parent 175da6b commit cecbc44
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/error/cast.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class CastError extends MongooseError {
* ignore
*/
setModel(model) {
this.model = model;
this.message = formatMessage(model, this.kind, this.value, this.path,
this.messageFormat, this.valueType);
}
Expand Down

0 comments on commit cecbc44

Please sign in to comment.