fix AddUserInChat

This commit is contained in:
Владимир Фёдоров 2022-04-25 02:59:44 +07:00
parent 9d5b5c2a2f
commit 42f73f84fd
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ func AddUserInChat(chatID int64, username string) error {
_, err = collection.UpdateOne(
ctx,
bson.M{"chat_id": chatID},
bson.M{"addToSet": bson.M{"users": username}},
bson.M{"$addToSet": bson.M{"users": username}},
)
return err
}