mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-03 02:14:24 +08:00
bug squashin
This commit is contained in:
parent
3f1ce8be7a
commit
a58a6be665
1 changed files with 2 additions and 0 deletions
|
@ -29,11 +29,13 @@ func (s *NodeServiceServer) ReadNode(ctx context.Context, req *nodepb.Object) (*
|
|||
log.Println("could not get node "+macAndNetwork[0]+" "+macAndNetwork[1], err)
|
||||
return nil, err
|
||||
}
|
||||
node.SetLastCheckIn()
|
||||
// Cast to ReadNodeRes type
|
||||
nodeData, err := json.Marshal(&node)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
node.Update(&node)
|
||||
response := &nodepb.Object{
|
||||
Data: string(nodeData),
|
||||
Type: nodepb.NODE_TYPE,
|
||||
|
|
Loading…
Add table
Reference in a new issue