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

Commit

Permalink
Merge pull request #107 from Fdawgs/ref/tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Mar 10, 2022
2 parents d9b44bd + 48de80e commit a2ea324
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/plugins/hashed-bearer-auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ async function plugin(server) {
auth: async (key, req) => {
const results = await server.db.query(
`SELECT DISTINCT
name,
hash,
salt,
scopes
Expand Down Expand Up @@ -48,6 +49,8 @@ async function plugin(server) {
typeof token.scopes === "string"
? JSON.parse(token.scopes)
: token.scopes;

req.log.info({ client: token.name });
break;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/routes/admin/access/bearer-token/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ async function route(server, options) {

const results = await server.db.query(
accessGetSearch({
client: options.database.client,
whereClausePredicates,
page,
perPage,
Expand Down

0 comments on commit a2ea324

Please sign in to comment.