mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-01 07:35:58 +08:00
office
This commit is contained in:
@@ -206,7 +206,7 @@ func init() {
|
||||
//if err != nil {
|
||||
// fmt.Println("mongodb create cTagModel2 failed", result, err.Error())
|
||||
//}
|
||||
result, err = dataBase.Collection(cTag).Indexes().CreateOne(context.Background(), mongo.IndexModel{
|
||||
_, err = dataBase.Collection(cTag).Indexes().CreateOne(context.Background(), mongo.IndexModel{
|
||||
Keys: bson.D{
|
||||
{Key: "user_id"},
|
||||
{Key: "create_time", Value: -1},
|
||||
|
||||
Reference in New Issue
Block a user