Skip to content

Commit

Permalink
feat: 实现 通用 db proxy entry,重构 policy 加载方式;实现 policy agent;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Aug 2, 2021
1 parent 0ca1794 commit b8f64aa
Show file tree
Hide file tree
Showing 25 changed files with 3,030 additions and 3,207 deletions.
5 changes: 1 addition & 4 deletions packages/app-server/init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ const { MongoAccessor, getDb } = require('less-api')
const { permissions } = require('./permissions')


const accessor = new MongoAccessor(Config.db.database, Config.db.uri, {
useNewUrlParser: true,
useUnifiedTopology: true
})
const accessor = new MongoAccessor(Config.db.database, Config.db.uri, { directConnection: true })

const db = getDb(accessor)

Expand Down
Loading

0 comments on commit b8f64aa

Please sign in to comment.