1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +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({
type: FEATURE_IMPORT,
createdBy: userName,
featureName: feature.name,
project: feature.project,
data: feature,
});
}),
@ -607,6 +609,7 @@ export default class StateService {
const importedFeatureTagEvents = importedFeatureTags.map((tag) => ({
type: FEATURE_TAG_IMPORT,
createdBy: userName,
featureName: tag.featureName,
data: tag,
}));
await this.eventStore.batchStore(importedFeatureTagEvents);