benetherington / node-TOM-discord-bot

MIT License
2 stars 0 forks source link

Ascent vehicle launch counts are sourced to the service provider, not the vehicle #65

Open benetherington opened 2 years ago

benetherington commented 2 years ago
const totalLaunchCount =
        launchData.launch_service_provider.total_launch_count;
const consecutiveLaunchCount =
        launchData.launch_service_provider.consecutive_successful_launches;

Should be

const totalLaunchCount =
        launchData.rocket.configuration.total_launch_count;
const consecutiveLaunchCount =
        launchData.rocket.configuration.consecutive_successful_launches;

maybe? This is just for the one configuration, might need a second call to get the vehicle-specific stats.