From 35272c9f69125d98a5a76d5d8a691071718dd396 Mon Sep 17 00:00:00 2001 From: Evan Lucchesi Leon <189633144+elucchesileon@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:00:07 -0500 Subject: [PATCH] Fix lint errors --- app/repository/assets-repository.js | 3 +++ app/tests/shared/keycloak.js | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/app/repository/assets-repository.js b/app/repository/assets-repository.js index aa1b96f2..af99e3e3 100644 --- a/app/repository/assets-repository.js +++ b/app/repository/assets-repository.js @@ -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 { diff --git a/app/tests/shared/keycloak.js b/app/tests/shared/keycloak.js index a3555bdc..8350b855 100644 --- a/app/tests/shared/keycloak.js +++ b/app/tests/shared/keycloak.js @@ -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 = {