private addPerformanceTimer(command: RequestCommand | IncomingRequestCommand, duration: number): void {
// Map to proper command name
private addPerformanceTimer(command: RequestCommand | IncomingRequestCommand, duration: number): void {
// Map to proper command name
sendMeterValues: RequestCommand.METER_VALUES,
startTransaction: RequestCommand.START_TRANSACTION,
stopTransaction: RequestCommand.STOP_TRANSACTION,
};
sendMeterValues: RequestCommand.METER_VALUES,
startTransaction: RequestCommand.START_TRANSACTION,
stopTransaction: RequestCommand.STOP_TRANSACTION,
};
- if (MAPCOMMAND[command]) {
- command = MAPCOMMAND[command] as RequestCommand | IncomingRequestCommand;
+ if (MAP_COMMAND[command]) {
+ command = MAP_COMMAND[command] as RequestCommand | IncomingRequestCommand;