Skip to content

Commit

Permalink
fix(lint): fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
James Talton authored and James Talton committed Feb 10, 2019
1 parent 63e9572 commit 2af4357
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/mongo-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,6 @@ interface IParams {
id: string
}

async function permissionCheckCallback(database: string, collection: string) {
return true
}

async function permissionCheck(param: string, ctx: Koa.Context, next: () => Promise<any>) {
const params: IParams = ctx.params
if (await permissionCheckCallback(params.database, params.collection)) {
await next()
}
}

const bodyParser = BodyParser()

export interface IMongoRouterOptions {
Expand Down

0 comments on commit 2af4357

Please sign in to comment.