Skip to content

Commit

Permalink
fix: 修改空指针错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Cbgogogog committed Sep 19, 2023
1 parent 4b01237 commit cec970f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions biz/application/service/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package service

import (
"context"
"time"

"github.com/xh-polaris/service-idl-gen-go/kitex_gen/meowchat/system"
"go.mongodb.org/mongo-driver/bson/primitive"

"github.com/xh-polaris/meowchat-system/biz/infrastructure/consts"
"github.com/xh-polaris/meowchat-system/biz/infrastructure/data/db"
"github.com/xh-polaris/meowchat-system/biz/infrastructure/mapper"
"github.com/xh-polaris/meowchat-system/biz/infrastructure/util"
"github.com/xh-polaris/service-idl-gen-go/kitex_gen/meowchat/system"
"go.mongodb.org/mongo-driver/bson/primitive"
"time"

"github.com/google/wire"
)
Expand Down Expand Up @@ -380,7 +382,7 @@ func (s *SystemServiceImpl) UpdateUserRole(ctx context.Context, req *system.Upda
}
roles[i] = db.Role{
Type: RoleTypeName[role.RoleType],
CommunityId: *role.CommunityId,
CommunityId: role.GetCommunityId(),
}
}

Expand Down

0 comments on commit cec970f

Please sign in to comment.