Skip to content

Commit 46ebe62

Browse files
authored
Merge pull request #3946 from sudo-rickroll/patch-5
Update part3c.md
2 parents 87f42ec + 88348ee commit 46ebe62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/3/en/part3c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ note.save().then(result => {
246246
})
247247
```
248248

249-
When the object is saved to the database, the event handler provided to _then_ gets called. The event handler closes the database connection with the command <code>mongoose.connection.close()</code>. If the connection is not closed, the program will never finish its execution.
249+
When the object is saved to the database, the event handler provided to _then_ gets called. The event handler closes the database connection with the command <code>mongoose.connection.close()</code>. If the connection is not closed, the connection remains open until the program terminates.
250250

251251
The result of the save operation is in the _result_ parameter of the event handler. The result is not that interesting when we're storing one object in the database. You can print the object to the console if you want to take a closer look at it while implementing your application or during debugging.
252252

0 commit comments

Comments
 (0)