diff --git a/src/commands/query-rollout.ts b/src/commands/query-rollout.ts index 83841a0..75f8852 100644 --- a/src/commands/query-rollout.ts +++ b/src/commands/query-rollout.ts @@ -15,7 +15,7 @@ export default async () => { const rollouts = await checkRollouts(domain) console.group(`Current rollouts for domain "${domain}" for this request`) - console.table(rollouts.map) + console.table(rollouts.rolloutMap) console.groupEnd() const rolloutName = args["--rolloutName"] @@ -23,7 +23,7 @@ export default async () => { if (rolloutName) { console.group(`Raw data for rollout "${rolloutName}" for domain "${domain}"`) - const rollout = rollouts.rollout.records[rolloutName] + const rollout = rollouts.records[rolloutName] // Simulate the distribution for 1000 sessions let totalSessions = 1000.0 diff --git a/src/helpers/rollouts.ts b/src/helpers/rollouts.ts index b9b86e2..8a027e5 100644 --- a/src/helpers/rollouts.ts +++ b/src/helpers/rollouts.ts @@ -8,10 +8,8 @@ type Rollout = { } type Rollouts = { - map: Record - rollout: { - records: Record - } + rolloutMap: Record, + records: Record } /**