fix: preserve video duration pricing curve
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-04-16 15:12:56 +08:00
parent c63f163b0e
commit c5a4b4add2

View File

@ -143,10 +143,8 @@ export function getVideoCreditCostFromConfig(
const resolutionCostMap = normalizeVideoResolutionCostMap(
config?.creditCostPerVideoByResolution
);
const durationOptions = getConfiguredVideoDurationOptions(config);
const durationCostMap = normalizeVideoDurationCostMap(
config?.creditCostPerVideoByDuration,
durationOptions
config?.creditCostPerVideoByDuration
);
const durationCostEntries = durationCostMap
? Object.entries(durationCostMap)