1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

fix: reduce data in FEATURE_ENVIRONMENT events

This commit is contained in:
Christopher Kolstad 2021-09-29 12:57:58 +02:00
parent 0a83abe101
commit efdbda68e4
No known key found for this signature in database
GPG Key ID: 559ACB0E3DB5538A
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -576,7 +576,7 @@ class FeatureToggleServiceV2 {
? FEATURE_ENVIRONMENT_ENABLED
: FEATURE_ENVIRONMENT_DISABLED,
createdBy: userName,
data,
data: { name: featureName },
tags,
project: projectId,
environment,