Skip to content

Commit

Permalink
Merge pull request #44 from wmurphyrd/dependencies
Browse files Browse the repository at this point in the history
udpate deps
  • Loading branch information
wmurphyrd authored Feb 11, 2022
2 parents 6d9c17a + 697f528 commit 0b6f404
Show file tree
Hide file tree
Showing 3 changed files with 2,344 additions and 5,034 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const ActivitypubExpress = require('activitypub-express')
const { DOMAIN, KEY_PATH, CERT_PATH, CA_PATH, PORT_HTTPS, DB_URL, DB_NAME } = process.env

const app = express()
const client = new MongoClient(DB_URL, { useUnifiedTopology: true, useNewUrlParser: true })
const client = new MongoClient(DB_URL)
const sslOptions = {
key: KEY_PATH && fs.readFileSync(path.join(__dirname, KEY_PATH)),
cert: CERT_PATH && fs.readFileSync(path.join(__dirname, CERT_PATH)),
Expand Down Expand Up @@ -175,7 +175,7 @@ app.use(function (err, req, res, next) {
}
})

client.connect({ useNewUrlParser: true })
client.connect()
.then(async () => {
const { default: AutoEncrypt } = await import('@small-tech/auto-encrypt')
apex.store.db = client.db(DB_NAME)
Expand Down
Loading

0 comments on commit 0b6f404

Please sign in to comment.