Skip to content

Commit

Permalink
refact: rename config files
Browse files Browse the repository at this point in the history
  • Loading branch information
frytg committed Sep 4, 2024
1 parent d0bdc04 commit e41996e
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ charset = utf-8
end_of_line = lf
indent_style = tab
indent_size = 8
print_width = 111
print_width = 120
trim_trailing_whitespace = true
insert_final_newline = true

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// import version from package.json
const { version } = require('../package.json')
const coreIdPrefixes = require('./coreIdPrefixes.json')
const coreIdPrefixes = require('./core-id-prefixes.json')

// load winston logger
const logger = require('../src/utils/logger')
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/ingest/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const OpenApiValidator = require('express-openapi-validator')
// load swagger UI
const swaggerUi = require('swagger-ui-express')
const swaggerDocument = require('../../openapi.json')
const swaggerConfig = require('../../config/swaggerUI')
const swaggerConfig = require('../../config/swagger-ui')

// set up router
const router = express.Router()
Expand Down
8 changes: 3 additions & 5 deletions src/utils/plugins/dts/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const logger = require('../../logger')
const undici = require('../../undici')

// load keys
const { credentials, endpoints, permittedExcludedFields } = require('../../../../config/dtsKeys')
const { credentials, endpoints, permittedExcludedFields } = require('../../../../config/dts-keys')

// load config
const config = require('../../../../config')
Expand Down Expand Up @@ -88,8 +88,7 @@ module.exports = async (job) => {
webURL: plugin?.webUrl || null,
enableShare: !!plugin?.webUrl,

enableThumbs:
plugin?.enableThumbs === true || plugin?.enableThumbs === false ? plugin.enableThumbs : true,
enableThumbs: plugin?.enableThumbs === true || plugin?.enableThumbs === false ? plugin.enableThumbs : true,
year: null,
fccId: null,
imageURL: null,
Expand All @@ -99,8 +98,7 @@ module.exports = async (job) => {
const mediaType = plugin?.preferArtistMedia ? 'artist' : 'cover'
const media = event.media?.find((thisMedia) => thisMedia.type === mediaType)
if (media) {
liveRadioEvent.imageURL =
media.url || media.templateUrl.replace('{width}', 512).replace('{height}', 512)
liveRadioEvent.imageURL = media.url || media.templateUrl.replace('{width}', 512).replace('{height}', 512)
}

// handle exclusions
Expand Down

0 comments on commit e41996e

Please sign in to comment.