优化
This commit is contained in:
@@ -45,7 +45,7 @@ function normalize(data: RawConfig): OverseasStorageFeeConfig {
|
||||
return {
|
||||
...data,
|
||||
id: String(data.id), customerId: String(data.customerId), version: Number(data.version),
|
||||
tiers: data.tiers.map((tier) => ({ ...tier, id: String(tier.id), unitPrice: Number(tier.unitPrice), feeType: tier.feeType as OverseasFeeType, billingUnit: tier.billingUnit as OverseasBillingUnit })),
|
||||
tiers: data.tiers.map((tier) => ({ ...tier, id: String(tier.id), endDay: tier.endDay == null ? null : Number(tier.endDay), unitPrice: Number(tier.unitPrice), feeType: tier.feeType as OverseasFeeType, billingUnit: tier.billingUnit as OverseasBillingUnit })),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user