This commit is contained in:
withchao 2023-04-19 15:51:47 +08:00
parent da180aacdd
commit d30fc3ef54

View File

@ -89,7 +89,7 @@ func (s *groupServer) GetUsernameMap(ctx context.Context, userIDs []string, comp
}
func (s *groupServer) IsNotFound(err error) bool {
return errs.ErrRecordNotFound.Is(specialerror.ErrCode(err))
return errs.ErrRecordNotFound.Is(specialerror.ErrCode(errs.Unwrap(err)))
}
func (s *groupServer) GenGroupID(ctx context.Context, groupID *string) error {