Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mongo url
  • Loading branch information
Arifshariar7 committed Oct 2, 2021
1 parent 3b791eb commit 9de6ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/db.js
Expand Up @@ -6,7 +6,7 @@ const localuri="mongodb://localhost/paste-buckets"

export const connect = async () => {
if (!isConnected) {
await mongoose.connect(localuri, {
await mongoose.connect(uri, {

useNewUrlParser: true,

Expand Down

1 comment on commit 9de6ba4

@vercel
Copy link

@vercel vercel bot commented on 9de6ba4 Oct 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.