Skip to content

Commit

Permalink
Rename utils to lib in with-mongodb-mongoose example (#27407)
Browse files Browse the repository at this point in the history
Rename the `utils` folder to `lib`, and update file imports since other examples favour `lib` over `utils`.
  • Loading branch information
cobrexus authored Jul 22, 2021
1 parent f8947b0 commit 047347a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/with-mongodb-mongoose/pages/[id]/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react'
import { useRouter } from 'next/router'
import Link from 'next/link'
import dbConnect from '../../utils/dbConnect'
import dbConnect from '../../lib/dbConnect'
import Pet from '../../models/Pet'

/* Allows you to view pet card info and delete pet card*/
Expand Down
2 changes: 1 addition & 1 deletion examples/with-mongodb-mongoose/pages/api/pets/[id].js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dbConnect from '../../../utils/dbConnect'
import dbConnect from '../../../lib/dbConnect'
import Pet from '../../../models/Pet'

export default async function handler(req, res) {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-mongodb-mongoose/pages/api/pets/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dbConnect from '../../../utils/dbConnect'
import dbConnect from '../../../lib/dbConnect'
import Pet from '../../../models/Pet'

export default async function handler(req, res) {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-mongodb-mongoose/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Link from 'next/link'
import dbConnect from '../utils/dbConnect'
import dbConnect from '../lib/dbConnect'
import Pet from '../models/Pet'

const Index = ({ pets }) => (
Expand Down

0 comments on commit 047347a

Please sign in to comment.