mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 01:07:41 +08:00
bug squashin
This commit is contained in:
@@ -418,6 +418,9 @@ func GetAllNodes() ([]Node, error) {
|
||||
|
||||
collection, err := database.FetchRecords(database.NODES_TABLE_NAME)
|
||||
if err != nil {
|
||||
if database.IsEmptyRecord(err) {
|
||||
return []Node{}, nil
|
||||
}
|
||||
return []Node{}, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user