Renamed SharedNode to SharedMachine
This commit is contained in:
parent
75a342f96e
commit
2780623076
4 changed files with 8 additions and 8 deletions
|
@ -103,8 +103,8 @@ func (h *Headscale) ListSharedMachinesInNamespace(name string) (*[]Machine, erro
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
sharedNodes := []SharedNode{}
|
||||
if err := h.db.Preload("Namespace").Where(&SharedNode{NamespaceID: n.ID}).Find(&sharedNodes).Error; err != nil {
|
||||
sharedNodes := []SharedMachine{}
|
||||
if err := h.db.Preload("Namespace").Where(&SharedMachine{NamespaceID: n.ID}).Find(&sharedNodes).Error; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue