Skip to content

Commit

Permalink
no need for object assign
Browse files Browse the repository at this point in the history
in cds-plugin
  • Loading branch information
rlindner81 committed Sep 12, 2023
1 parent 18c7d21 commit 54448f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cds-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const { initializeFeatures } = require("./src/singleton");

const activate = async () => {
if (cds.env.featureToggles?.config || cds.env.featureToggles?.configFile) {
cds.env.requires = Object.assign(cds.env.requires, {
FeatureService: { model: "@cap-js-community/feature-toggle-library" },
});
cds.env.requires["FeatureService"] = { model: "@cap-js-community/feature-toggle-library" };

if (Array.isArray(cds.env.featureToggles.serviceAccessRoles)) {
cds.on("loaded", (csn) => {
Expand Down

0 comments on commit 54448f5

Please sign in to comment.