1
0
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:
Ivar Conradi Østhus 2023-02-08 09:47:14 +01:00
parent a9b6c3c53f
commit 576560f998
No known key found for this signature in database
GPG Key ID: 14F51E4841AF1DE1

View File

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