Browse Source

testing continued

0xdcarns 3 years ago
parent
commit
b961b6a1f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      logic/nodes.go

+ 1 - 1
logic/nodes.go

@@ -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) {