You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ti...@apache.org on 2020/03/23 08:38:00 UTC

[servicecomb-kie] branch master updated: fix bug when init db (#122)

This is an automated email from the ASF dual-hosted git repository.

tianxiaoliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-kie.git


The following commit(s) were added to refs/heads/master by this push:
     new 69b3773  fix bug when init db (#122)
69b3773 is described below

commit 69b37730859e8b7df659054f1392c4439aabe613
Author: GuoYL <53...@users.noreply.github.com>
AuthorDate: Mon Mar 23 16:37:50 2020 +0800

    fix bug when init db (#122)
---
 server/service/mongo/session/session.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/service/mongo/session/session.go b/server/service/mongo/session/session.go
index 3a5c06c..48b5da2 100644
--- a/server/service/mongo/session/session.go
+++ b/server/service/mongo/session/session.go
@@ -259,7 +259,7 @@ func InitMongodb() {
 		panic(err)
 	}
 	//view
-	c = session.DB(DBName).C(CollectionLabel)
+	c = session.DB(DBName).C(CollectionView)
 	err = c.Create(&mgo.CollectionInfo{Validator: bson.M{
 		"id":      bson.M{"$exists": true},
 		"domain":  bson.M{"$exists": true},