Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
marco79cgn committed Dec 11, 2023
1 parent a086e4c commit 92b9c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ingest/events/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const source = 'ingest/events/post'
const DEFAULT_ZONE = 'Europe/Berlin'

// feature flags
const IS_DTS_OPT_OUT_ENABLED = false
const IS_COMMON_TOPIC_ENABLED = true
const DTS_INSTITUTION_ALLOW_LIST = ['urn:ard:institution:a3004ff924ece1a2', 'urn:ard:institution:95a02eb6cc4f3d59']

module.exports = async (req, res) => {
try {
Expand Down Expand Up @@ -129,7 +129,7 @@ module.exports = async (req, res) => {

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

0 comments on commit 92b9c09

Please sign in to comment.