This commit is contained in:
wangchuxiao
2023-02-10 15:46:29 +08:00
parent 79c30fdc69
commit 0e97285e0a
8 changed files with 93 additions and 205 deletions
+2 -2
View File
@@ -74,8 +74,8 @@ func (m *Mongo) CreateTagIndex() {
}
func (m *Mongo) CreateMsgIndex() {
if err := m.createMongoIndex(cChat, false, "uid"); err != nil {
fmt.Println(err.Error() + " index create failed " + cChat + " uid, please create index by yourself in field uid")
if err := m.createMongoIndex(unrelation.CChat, false, "uid"); err != nil {
fmt.Println(err.Error() + " index create failed " + unrelation.CChat + " uid, please create index by yourself in field uid")
}
}