Kaynağa Gözat

Distributor node: Remove redundant reqBody in NodeCommandBase children

Leszek Wiesner 3 yıl önce
ebeveyn
işleme
943c053358

+ 0 - 4
distributor-node/src/commands/node/shutdown.ts

@@ -10,8 +10,4 @@ export default class NodeShutdownCommand extends NodeCommandBase {
   protected reqUrl(): string {
     return '/api/v1/shutdown'
   }
-
-  protected reqBody(): Record<string, unknown> {
-    return {}
-  }
 }

+ 0 - 4
distributor-node/src/commands/node/start-public-api.ts

@@ -10,8 +10,4 @@ export default class NodeStartPublicApiCommand extends NodeCommandBase {
   protected reqUrl(): string {
     return '/api/v1/start-api'
   }
-
-  protected reqBody(): Record<string, unknown> {
-    return {}
-  }
 }

+ 0 - 4
distributor-node/src/commands/node/stop-public-api.ts

@@ -10,8 +10,4 @@ export default class NodeStopPublicApiCommand extends NodeCommandBase {
   protected reqUrl(): string {
     return '/api/v1/stop-api'
   }
-
-  protected reqBody(): Record<string, unknown> {
-    return {}
-  }
 }