Skip to content

Commit

Permalink
fix: Remove lastSeenAt when exporting FeatureEnvironment (#4416)
Browse files Browse the repository at this point in the history
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
  • Loading branch information
andreas-unleash committed Aug 4, 2023
1 parent d001b86 commit d1daf0b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/lib/features/export-import-toggles/export-import-service.ts
Expand Up @@ -640,11 +640,13 @@ export default class ExportImportService {
...rest,
};
}),
featureEnvironments: featureEnvironments.map((item) => ({
...item,
name: item.featureName,
lastSeenAt: item.lastSeenAt?.toISOString(),
})),
featureEnvironments: featureEnvironments.map((item) => {
const { lastSeenAt, ...rest } = item;
return {
...rest,
name: item.featureName,
};
}),
contextFields: filteredContextFields.map((item) => {
const { createdAt, ...rest } = item;
return rest;
Expand Down

0 comments on commit d1daf0b

Please sign in to comment.