Skip to content

Commit

Permalink
Merge pull request #1 from Talend/sgandon/fix_client_side_availability
Browse files Browse the repository at this point in the history
fix(migration): use proper yaml keys for clientSideAvailability
  • Loading branch information
sgandon authored Jan 10, 2024
2 parents 86fea98 + a91f375 commit c3f448d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ for await (const flag of flagData.items) {
description: flag.description
};

if (flag.client_side_availability) {
newFlag.client_side_availability = flag.client_side_availability;
} else if (flag.include_in_snippet) {
newFlag.include_in_snippet = flag.include_in_snippet;
if (flag.clientSideAvailability) {
newFlag.clientSideAvailability = flag.clientSideAvailability;
} else if (flag.includeInSnippet) {
newFlag.includeInSnippet = flag.includeInSnippet;
}
if (flag.custom_properties) {
newFlag.custom_properties = flag.custom_properties;
if (flag.customProperties) {
newFlag.customProperties = flag.customProperties;
}

if (flag.defaults) {
Expand Down

0 comments on commit c3f448d

Please sign in to comment.