Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix(fastify-autoload): fixes export default fastify-autoload bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fox1t committed Feb 17, 2020
1 parent e7866c5 commit 646a59e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"cross-env": "~7.0.0",
"fastify": "~2.12.0",
"fastify-autoload": "~1.2.0",
"fastify-autoload": "~1.2.1",
"fastify-blipp": "~2.1.0",
"fastify-cors": "~3.0.0",
"fastify-helmet": "~3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/couchdb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ couchDB.autoConfig = {
url: COUCHDB_URL,
}

export = fp(couchDB)
export default fp(couchDB)

declare module 'fastify' {
interface FastifyInstance {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/couchdb/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ couchDBProxy.autoConfig = {
url: process.env.COUCHDB_URL,
}

export = couchDBProxy
export default couchDBProxy

0 comments on commit 646a59e

Please sign in to comment.