* Initializes the flighting info for the user.
()
| 234 | * Initializes the flighting info for the user. |
| 235 | */ |
| 236 | private initializeUserFlighting() { |
| 237 | let getFlightingEvent: Log.Event.PromiseEvent = new Log.Event.PromiseEvent(Log.Event.Label.GetFlightingAssignments); |
| 238 | |
| 239 | this.getFlightingAssignments(this.clientInfo.get().clipperId).then((flights: string[]) => { |
| 240 | this.updateClientInfoWithFlightInformation(flights); |
| 241 | }).catch((error: OneNoteApi.GenericError) => { |
| 242 | this.updateClientInfoWithFlightInformation([]); |
| 243 | |
| 244 | getFlightingEvent.setStatus(Log.Status.Failed); |
| 245 | getFlightingEvent.setFailureInfo(error); |
| 246 | }).then(() => { |
| 247 | this.logger.logEvent(getFlightingEvent); |
| 248 | }); |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * Returns the current flighting assignment for the user |
nothing calls this directly
no test coverage detected