refactor: rename some functions

This commit is contained in:
Mazzella, Jesse D. (ARC-TI)[KBR Wyle Services, LLC] 2024-01-29 14:43:47 -08:00
parent 7097101c96
commit efd5466482

View File

@ -151,16 +151,16 @@ export default class StatusAPI extends EventEmitter {
}
/**
* Fetch the list of possible mission status options
* @returns {Promise<MissionStatusOption[]>} the current mission status
* Fetch the list of possible mission roles
* @returns {Promise<MissionRole[]>} the list of possible mission roles
*/
async getPossibleMissionStatuses() {
async getPossibleMissionRoles() {
const provider = this.#userAPI.getProvider();
if (provider.getPossibleMissionStatuses) {
const possibleStatuses = await provider.getPossibleMissionStatuses();
if (provider.getPossibleMissionRoles) {
const possibleRoles = await provider.getPossibleMissionRoles();
return possibleStatuses;
return possibleRoles;
} else {
this.#userAPI.error('User provider does not support mission statuses');
}