Skip to content

Commit 1f1d539

Browse files
Small Change in " Create Storage Engine " section
In this section , GridFsStorage take up object of url as key . I have improved spelling mistake of mongodb . i.e { url : mongodb } in case you have written { url : mongonURI }. Will you accept the changes ? Thanks for providing this tutorial . It is very helpful to me.
1 parent 92b9165 commit 1f1d539

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ conn.once('open', () => {
2525

2626
// Create storage engine
2727
const storage = new GridFsStorage({
28-
url: monogoURI,
28+
url: mongoURI,
2929
file: (req, file) => {
3030
return new Promise((resolve, reject) => {
3131
crypto.randomBytes(16, (err, buf) => {
@@ -105,4 +105,4 @@ app.delete('/files/:id', (req, res) => {
105105
});
106106

107107
// Start the Server
108-
app.listen(port, () => console.log(`Server started on port ${port}`));
108+
app.listen(port, () => console.log(`Server started on port ${port}`));

0 commit comments

Comments
 (0)