diff --git a/pkg/common/db/mysql_model/im_mysql_model/user_black_list_model.go b/pkg/common/db/mysql_model/im_mysql_model/user_black_list_model.go index cd95aaa95..6ad58bb3a 100644 --- a/pkg/common/db/mysql_model/im_mysql_model/user_black_list_model.go +++ b/pkg/common/db/mysql_model/im_mysql_model/user_black_list_model.go @@ -41,7 +41,7 @@ func RemoveBlackList(ownerUserID, blockUserID string) error { return err } black := db.Black{OwnerUserID: ownerUserID, BlockUserID: blockUserID} - return utils.Wrap(dbConn.Delete(&black).Error, "RemoveBlackList failed") + return utils.Wrap(dbConn.Table("blacks").Delete(&black).Error, "RemoveBlackList failed") } func GetBlackListByUserID(ownerUserID string) ([]db.Black, error) {