diff --git a/src/lib/addons/slack.ts b/src/lib/addons/slack.ts index 24c5bc1061..33007294ed 100644 --- a/src/lib/addons/slack.ts +++ b/src/lib/addons/slack.ts @@ -4,14 +4,14 @@ import Addon from './addon'; import slackDefinition from './slack-definition'; import { IAddonConfig, IEvent } from '../types/model'; -const { +import { FEATURE_CREATED, FEATURE_UPDATED, FEATURE_ARCHIVED, FEATURE_REVIVED, FEATURE_STALE_ON, FEATURE_STALE_OFF, -} = require('../types/events'); +} from '../types/events'; export default class SlackAddon extends Addon { unleashUrl: string; diff --git a/src/lib/services/feature-toggle-service-v2.ts b/src/lib/services/feature-toggle-service-v2.ts index a66bcdccb4..3853b4f555 100644 --- a/src/lib/services/feature-toggle-service-v2.ts +++ b/src/lib/services/feature-toggle-service-v2.ts @@ -576,7 +576,7 @@ class FeatureToggleServiceV2 { ? FEATURE_ENVIRONMENT_ENABLED : FEATURE_ENVIRONMENT_DISABLED, createdBy: userName, - data, + data: { name: featureName }, tags, project: projectId, environment,