mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 16:45:15 +03:00
fix: delete id in response
This commit is contained in:
@@ -21,9 +21,9 @@ func toCreateHeartbeatModel(agentID string, heartbeat *pb.AgentEvent_Heartbeat)
|
||||
}
|
||||
}
|
||||
|
||||
func toGRPCCommandRequest(request domainHub.AgentRequest) pb.ServerCommandRequest {
|
||||
func toGRPCCommandRequest(requestID string, request domainHub.AgentRequest) pb.ServerCommandRequest {
|
||||
return pb.ServerCommandRequest{
|
||||
RequestId: request.RequestID,
|
||||
RequestId: requestID,
|
||||
Name: request.Name,
|
||||
TimeoutSeconds: int64(request.TimeOut),
|
||||
Args: request.Args,
|
||||
@@ -32,7 +32,6 @@ func toGRPCCommandRequest(request domainHub.AgentRequest) pb.ServerCommandReques
|
||||
|
||||
func toAgentResponse(response *pb.AgentEvent_CommandResponse) domainHub.AgentResponse {
|
||||
return domainHub.AgentResponse{
|
||||
RequestID: response.CommandResponse.RequestId,
|
||||
Success: response.CommandResponse.Success,
|
||||
Error: response.CommandResponse.Error,
|
||||
Output: response.CommandResponse.Output,
|
||||
|
||||
Reference in New Issue
Block a user