Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
elucchesileon committed Nov 26, 2024
1 parent df2f44f commit 35272c9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions app/repository/assets-repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

const BaseRepository = require('./_base.repository');
const Asset = require('../models/asset-model');
const regexValidator = require('../lib/regex');
const { lastUpdatedByQueryHelper } = require('../lib/request-parameter-helper');
const { DatabaseError } = require('../exceptions');

class AssetsRepository extends BaseRepository {

Expand Down
24 changes: 12 additions & 12 deletions app/tests/shared/keycloak.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,18 @@ async function getClientSecret(basePath, realmName, idOfClient, token) {
}
}

async function getWellKnownConfiguration(basePath, realmName, token) {
try {
const res = await request
.get(`${ basePath }/realms/${ realmName }/.well-known/openid-configuration`)
.set('Authorization', `bearer ${ token }`);
console.log(res);
}
catch (err) {
logger.error('Unable to get well known configuration');
throw err;
}
}
// async function getWellKnownConfiguration(basePath, realmName, token) {
// try {
// const res = await request
// .get(`${ basePath }/realms/${ realmName }/.well-known/openid-configuration`)
// .set('Authorization', `bearer ${ token }`);
// console.log(res);
// }
// catch (err) {
// logger.error('Unable to get well known configuration');
// throw err;
// }
// }

async function createUser(basePath, realmName, userOptions, token) {
const userData = {
Expand Down

0 comments on commit 35272c9

Please sign in to comment.