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 * Fetch the list of possible mission roles
* @returns {Promise<MissionStatusOption[]>} the current mission status * @returns {Promise<MissionRole[]>} the list of possible mission roles
*/ */
async getPossibleMissionStatuses() { async getPossibleMissionRoles() {
const provider = this.#userAPI.getProvider(); const provider = this.#userAPI.getProvider();
if (provider.getPossibleMissionStatuses) { if (provider.getPossibleMissionRoles) {
const possibleStatuses = await provider.getPossibleMissionStatuses(); const possibleRoles = await provider.getPossibleMissionRoles();
return possibleStatuses; return possibleRoles;
} else { } else {
this.#userAPI.error('User provider does not support mission statuses'); this.#userAPI.error('User provider does not support mission statuses');
} }