Skip to content

Commit

Permalink
Update mojmaxtv.hrvatskitelekom.hr.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvana-7777 authored Feb 21, 2025
1 parent 667c394 commit f2759f8
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,6 @@ const getHeaders = () => ({

const unknownRoles = new Map()

Check failure on line 51 in sites/mojmaxtv.hrvatskitelekom.hr/mojmaxtv.hrvatskitelekom.hr.config.js

View workflow job for this annotation

GitHub Actions / check

'unknownRoles' is assigned a value but never used

function detectUnknownRoles(item) {
if (!item.roles) return

item.roles.forEach(role => {
if (!KNOWN_ROLES.has(role.role_name)) {
const count = unknownRoles.get(role.role_name) || 0
unknownRoles.set(role.role_name, count + 1)

// Log the first occurrence of each unknown role with an example
if (count === 0) {
console.log('New role type detected:', {
role_name: role.role_name,
example_person: role.person_name,
program_id: item.program_id
})
}
}
})
}

module.exports = {
site: SITE_URL,
url({ date }) {
Expand Down

0 comments on commit f2759f8

Please sign in to comment.