mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +02:00
fix: add featureName and project id to import events
This commit is contained in:
parent
a9b6c3c53f
commit
576560f998
@ -397,6 +397,8 @@ export default class StateService {
|
|||||||
await this.eventStore.store({
|
await this.eventStore.store({
|
||||||
type: FEATURE_IMPORT,
|
type: FEATURE_IMPORT,
|
||||||
createdBy: userName,
|
createdBy: userName,
|
||||||
|
featureName: feature.name,
|
||||||
|
project: feature.project,
|
||||||
data: feature,
|
data: feature,
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
@ -607,6 +609,7 @@ export default class StateService {
|
|||||||
const importedFeatureTagEvents = importedFeatureTags.map((tag) => ({
|
const importedFeatureTagEvents = importedFeatureTags.map((tag) => ({
|
||||||
type: FEATURE_TAG_IMPORT,
|
type: FEATURE_TAG_IMPORT,
|
||||||
createdBy: userName,
|
createdBy: userName,
|
||||||
|
featureName: tag.featureName,
|
||||||
data: tag,
|
data: tag,
|
||||||
}));
|
}));
|
||||||
await this.eventStore.batchStore(importedFeatureTagEvents);
|
await this.eventStore.batchStore(importedFeatureTagEvents);
|
||||||
|
Loading…
Reference in New Issue
Block a user