mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-22 00:06:04 +08:00
testing continued
This commit is contained in:
parent
eda5779a99
commit
3c66c34ecb
|
@ -16,7 +16,7 @@ import (
|
|||
|
||||
// GetNetworkNodes - gets the nodes of a network
|
||||
func GetNetworkNodes(network string) ([]models.Node, error) {
|
||||
var nodes []models.Node
|
||||
var nodes = []models.Node{}
|
||||
collection, err := database.FetchRecords(database.NODES_TABLE_NAME)
|
||||
if err != nil {
|
||||
if database.IsEmptyRecord(err) {
|
||||
|
|
Loading…
Reference in a new issue