From d30fc3ef54abc581db343fa834985e7d561b203d Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Wed, 19 Apr 2023 15:51:47 +0800 Subject: [PATCH] group --- internal/rpc/group/group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/group/group.go b/internal/rpc/group/group.go index a57148b1e..e43732091 100644 --- a/internal/rpc/group/group.go +++ b/internal/rpc/group/group.go @@ -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 {