This commit is contained in:
wangchuxiao
2022-04-28 17:35:19 +08:00
parent 2751a967e8
commit 20f61042fc
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ func updateAllFriendToCache(userList []db.User) error {
log.NewError("0", utils.GetSelfFuncName(), err.Error())
continue
}
if err := db.DB.AddFriendToCache(user.UserID, friendIDList); err != nil {
if err := db.DB.AddFriendToCache(user.UserID, friendIDList...); err != nil {
log.NewError("0", utils.GetSelfFuncName(), err.Error())
}
}