Bladeren bron

Linter fixes

Leszek Wiesner 4 jaren geleden
bovenliggende
commit
323c49cd61
2 gewijzigde bestanden met toevoegingen van 8 en 5 verwijderingen
  1. 7 4
      cli/src/Api.ts
  2. 1 1
      cli/src/commands/working-groups/opening.ts

+ 7 - 4
cli/src/Api.ts

@@ -416,19 +416,22 @@ export default class Api {
       sp.isSome ? unstakingPeriod(sp.unwrap()[key]) : 0
 
     const unstakingPeriods: Partial<UnstakingPeriods> = {
-      review_period_expired_application_stake_unstaking_period_length: spUnstakingPeriod(
+      ['review_period_expired_application_stake_unstaking_period_length']: spUnstakingPeriod(
         applSP,
         'review_period_expired_unstaking_period_length'
       ),
-      crowded_out_application_stake_unstaking_period_length: spUnstakingPeriod(
+      ['crowded_out_application_stake_unstaking_period_length']: spUnstakingPeriod(
         applSP,
         'crowded_out_unstaking_period_length'
       ),
-      review_period_expired_role_stake_unstaking_period_length: spUnstakingPeriod(
+      ['review_period_expired_role_stake_unstaking_period_length']: spUnstakingPeriod(
         roleSP,
         'review_period_expired_unstaking_period_length'
       ),
-      crowded_out_role_stake_unstaking_period_length: spUnstakingPeriod(roleSP, 'crowded_out_unstaking_period_length'),
+      ['crowded_out_role_stake_unstaking_period_length']: spUnstakingPeriod(
+        roleSP,
+        'crowded_out_unstaking_period_length'
+      ),
     }
 
     openingPolicyUnstakingPeriodsKeys.forEach((key) => {

+ 1 - 1
cli/src/commands/working-groups/opening.ts

@@ -1,7 +1,7 @@
 import WorkingGroupsCommandBase from '../../base/WorkingGroupsCommandBase'
 import { displayTable, displayCollapsedRow, displayHeader } from '../../helpers/display'
 import _ from 'lodash'
-import { OpeningStatus, GroupOpeningStage, GroupOpeningStakes, NameValueObj, UnstakingPeriodsKey } from '../../Types'
+import { OpeningStatus, GroupOpeningStage, GroupOpeningStakes, UnstakingPeriodsKey } from '../../Types'
 import { StakingAmountLimitModeKeys, StakingPolicy } from '@joystream/types/hiring'
 import { formatBalance } from '@polkadot/util'
 import chalk from 'chalk'