Browse Source

update

master
DengBiao 1 year ago
parent
commit
869f8fe869
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      internal/logic/domain/group/repo/group_user_repo.go

+ 1
- 1
internal/logic/domain/group/repo/group_user_repo.go View File

@@ -40,7 +40,7 @@ func (*groupUserRepo) ListUser(groupId int64) ([]model.GroupUser, error) {
// ListBannedUser 获取群组禁言用户信息 // ListBannedUser 获取群组禁言用户信息
func (*groupUserRepo) ListBannedUser(groupId int64) ([]model.GroupUser, error) { func (*groupUserRepo) ListBannedUser(groupId int64) ([]model.GroupUser, error) {
var groupUsers []model.GroupUser 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 { if err != nil {
return nil, gerrors.WrapError(err) return nil, gerrors.WrapError(err)
} }


Loading…
Cancel
Save