From 51a1911bb3e6ad27a716b4a098cd02c61801bb9d Mon Sep 17 00:00:00 2001 From: Marco Dengel Date: Mon, 11 Dec 2023 16:14:12 +0100 Subject: [PATCH] chore: dts only for type music --- src/ingest/events/post.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ingest/events/post.js b/src/ingest/events/post.js index 166f112f..4734b4de 100644 --- a/src/ingest/events/post.js +++ b/src/ingest/events/post.js @@ -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,