DengBiao pirms 1 gada
vecāks
revīzija
869f8fe869
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      internal/logic/domain/group/repo/group_user_repo.go

+ 1
- 1
internal/logic/domain/group/repo/group_user_repo.go Parādīt failu

@@ -40,7 +40,7 @@ func (*groupUserRepo) ListUser(groupId int64) ([]model.GroupUser, error) {
// ListBannedUser 获取群组禁言用户信息
func (*groupUserRepo) ListBannedUser(groupId int64) ([]model.GroupUser, error) {
var groupUsers []model.GroupUser
err := db.DB.Find(&groupUsers, "group_id = ? and status", groupId, pb.GroupUserStatusType_GROUP_USER_STATUS_Banned).Error
err := db.DB.Find(&groupUsers, "group_id = ? and status = ?", groupId, pb.GroupUserStatusType_GROUP_USER_STATUS_Banned).Error
if err != nil {
return nil, gerrors.WrapError(err)
}


Notiek ielāde…
Atcelt
Saglabāt