Skip to content

Commit 9ebea16

Browse files
authored
Fixed Grammar
On Part 3d, there is a statement that says: "The documentation explains what is the problem, validations are not run by default when findOneAndUpdate is executed." I tried to re-word this statement in order to correct the grammar in this sentence.
1 parent 19b8598 commit 9ebea16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/3/en/part3d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ When validating an object fails, we return the following default error message f
8585
![postman showing error message](../../images/3/50.png)
8686

8787
We notice that the backend has now a problem: validations are not done when editing a note.
88-
The [documentation](https://github.com/blakehaswell/mongoose-unique-validator#find--updates) explains what is the problem, validations are not run by default when <i>findOneAndUpdate</i> is executed.
88+
The [documentation](https://github.com/blakehaswell/mongoose-unique-validator#find--updates) addresses the issue by explaining that validations are not run by default when <i>findOneAndUpdate</i> is executed.
8989

9090
The fix is easy. Let us also reformulate the route code a bit:
9191

0 commit comments

Comments
 (0)