Skip to content

Commit

Permalink
chore: dts only for type music
Browse files Browse the repository at this point in the history
  • Loading branch information
marco79cgn committed Dec 11, 2023
1 parent 62c8e7e commit 51a1911
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ingest/events/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ module.exports = async (req, res) => {

// add opt-out plugins
const isDtsPluginSet = message.plugins?.find((plugin) => plugin.type === 'dts')
if (!isDtsPluginSet && DTS_INSTITUTION_ALLOW_LIST.includes(req.user.institutionId)) {
const isMusic = req.body.type === 'music'
if (!isDtsPluginSet && isMusic && DTS_INSTITUTION_ALLOW_LIST.includes(req.user.institutionId)) {
message.plugins.push({
type: 'dts',
isDeactivated: false,
Expand Down

0 comments on commit 51a1911

Please sign in to comment.