fix: preserve video duration pricing curve
This commit is contained in:
parent
c63f163b0e
commit
c5a4b4add2
@ -143,10 +143,8 @@ export function getVideoCreditCostFromConfig(
|
|||||||
const resolutionCostMap = normalizeVideoResolutionCostMap(
|
const resolutionCostMap = normalizeVideoResolutionCostMap(
|
||||||
config?.creditCostPerVideoByResolution
|
config?.creditCostPerVideoByResolution
|
||||||
);
|
);
|
||||||
const durationOptions = getConfiguredVideoDurationOptions(config);
|
|
||||||
const durationCostMap = normalizeVideoDurationCostMap(
|
const durationCostMap = normalizeVideoDurationCostMap(
|
||||||
config?.creditCostPerVideoByDuration,
|
config?.creditCostPerVideoByDuration
|
||||||
durationOptions
|
|
||||||
);
|
);
|
||||||
const durationCostEntries = durationCostMap
|
const durationCostEntries = durationCostMap
|
||||||
? Object.entries(durationCostMap)
|
? Object.entries(durationCostMap)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user