Skip to content

Commit

Permalink
feat: performance optimization - user
Browse files Browse the repository at this point in the history
  • Loading branch information
wubenqi committed Sep 11, 2022
1 parent 391eb4c commit f2f7bcf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ func (c *UserCore) UserGetMutableUsers(in *user.TLUserGetMutableUsers) (*user.Ve
if ok, _ := container2.Contains(id[idx], in.To); ok {
mutableUsers[idx], _ = c.svcCtx.Dao.GetImmutableUser(c.ctx, id[idx], true, in.Id...)
} else {
mutableUsers[idx], _ = c.svcCtx.Dao.GetImmutableUser(c.ctx, id[idx], true, in.Id...)
if len(in.To) == 0 {
mutableUsers[idx], _ = c.svcCtx.Dao.GetImmutableUser(c.ctx, id[idx], true, in.Id...)
} else {
mutableUsers[idx], _ = c.svcCtx.Dao.GetImmutableUser(c.ctx, id[idx], true, in.To...)
}
}
})

Expand Down

0 comments on commit f2f7bcf

Please sign in to comment.