changed logs

This commit is contained in:
afeiszli
2021-08-09 12:43:09 -04:00
parent 1c521934ba
commit 382901b124
17 changed files with 82 additions and 126 deletions

View File

@@ -13,7 +13,7 @@ import (
gconf.ServerGRPC = "localhost:8081"
gconf.PortGRPC = "50051"
//err := SetGlobalConfig(gconf)
collection := REMOVE.Client.Database("netmaker").Collection("config")
collection := REMOVE.Client.Database(models.NODE_SERVER_NAME).Collection("config")
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
//create, _, err := functions.GetGlobalConfig()
@@ -24,7 +24,7 @@ import (
//drop network, nodes, and user collections
var collections = []string{"networks", "nodes", "users", "dns"}
for _, table := range collections {
collection := REMOVE.Client.Database("netmaker").Collection(table)
collection := REMOVE.Client.Database(models.NODE_SERVER_NAME).Collection(table)
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
err := collection.Drop(ctx)