diff --git a/app.js b/app.js index 398b937..e951aa9 100644 --- a/app.js +++ b/app.js @@ -25,7 +25,7 @@ conn.once('open', () => { // Create storage engine const storage = new GridFsStorage({ - url: monogoURI, + url: mongoURI, file: (req, file) => { return new Promise((resolve, reject) => { crypto.randomBytes(16, (err, buf) => { @@ -105,4 +105,4 @@ app.delete('/files/:id', (req, res) => { }); // Start the Server -app.listen(port, () => console.log(`Server started on port ${port}`)); \ No newline at end of file +app.listen(port, () => console.log(`Server started on port ${port}`));