Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Nov 11, 2024
1 parent 7afa350 commit af854d0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions forge/ee/lib/teamBroker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,9 @@ module.exports.init = function (app) {
} else {
teamList[topic] = { ttl: Date.now() + (TOPIC_TTL) }
}
// topicsList[`ff/v1/${team}/c/${topic}`] = {
// ttl: Date.now() + (TOPIC_TTL)
// }
}

async function getUsedTopics (teamId) {
// const prefixLength = `ff/v1/${teamId}/c/`.length
// const topics = Object.keys(topicsList)
// .filter(t => t.startsWith(`ff/v1/${teamId}/c/`))
// .map(t => t.substring(prefixLength))
console.log(topicsList)
const topics = topicsList[teamId] ? Object.keys(topicsList[teamId]) : []
return topics
}
Expand Down

0 comments on commit af854d0

Please sign in to comment.