Skip to content

Commit

Permalink
Remove obsolete ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Apr 30, 2024
1 parent 8550acd commit 580c694
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/models/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ const userSchema = new Schema({
minimize: false,
});

// @ts-expect-error TS2769 Not sure how to get this to pick the right overload
userSchema.pre('validate', function preValidate(next) {
this.slug = slugify(this.username);
next();
Expand Down

0 comments on commit 580c694

Please sign in to comment.