Revert wrong type change
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 25 Jan 2023 19:08:54 +0000 (20:08 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 25 Jan 2023 19:08:54 +0000 (20:08 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/OCPPRequestService.ts

index 67faed54fc4610a8d98b419cbe30474eba1108b9..6a7729950de33b2532fb1b8c0153dc170280a957 100644 (file)
@@ -68,7 +68,7 @@ export default abstract class OCPPRequestService {
     messageId: string,
     messagePayload: JsonType,
     commandName: IncomingRequestCommand
-  ): Promise<ResponseType | undefined> {
+  ): Promise<ResponseType> {
     try {
       // Send response message
       return await this.internalSendMessage(