From 4cb8cb3722d925a01384c2d0e4e2913e1dd03cb5 Mon Sep 17 00:00:00 2001 From: kubbot <3293172751ysy@gmail.com> Date: Tue, 19 Mar 2024 02:10:40 +0000 Subject: [PATCH] cicd: bump League Patch --- .github/code-language-detector.yml | 14 ++++++++++++++ .github/workflows/code-language-detector.yml | 14 ++++++++++++++ internal/rpc/friend/black.go | 2 +- internal/rpc/group/group.go | 2 +- pkg/common/db/mgo/group.go | 3 +-- 5 files changed, 31 insertions(+), 4 deletions(-) diff --git a/.github/code-language-detector.yml b/.github/code-language-detector.yml index 9a81236b8a..32a8c1f54b 100644 --- a/.github/code-language-detector.yml +++ b/.github/code-language-detector.yml @@ -1,3 +1,17 @@ +# Copyright © 2024 OpenIM. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + directory: ./ file_types: - .go diff --git a/.github/workflows/code-language-detector.yml b/.github/workflows/code-language-detector.yml index 22307576a4..80ec947338 100644 --- a/.github/workflows/code-language-detector.yml +++ b/.github/workflows/code-language-detector.yml @@ -1,3 +1,17 @@ +# Copyright © 2024 OpenIM. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Language Check Workflow Test on: [pull_request] diff --git a/internal/rpc/friend/black.go b/internal/rpc/friend/black.go index 4bb0d9f58f..4e130360cd 100644 --- a/internal/rpc/friend/black.go +++ b/internal/rpc/friend/black.go @@ -79,7 +79,7 @@ func (s *friendServer) AddBlack(ctx context.Context, req *pbfriend.AddBlackReq) CreateTime: time.Now(), Ex: req.Ex, } - + if err := s.blackDatabase.Create(ctx, []*relation.BlackModel{&black}); err != nil { return nil, err } diff --git a/internal/rpc/group/group.go b/internal/rpc/group/group.go index e1e0dfed71..92d9e27d6a 100644 --- a/internal/rpc/group/group.go +++ b/internal/rpc/group/group.go @@ -637,7 +637,7 @@ func (s *groupServer) GetGroupMembersInfo(ctx context.Context, req *pbgroup.GetG return resp, nil } -// GetGroupApplicationList handles functions that get a list of group requests +// GetGroupApplicationList handles functions that get a list of group requests. func (s *groupServer) GetGroupApplicationList(ctx context.Context, req *pbgroup.GetGroupApplicationListReq) (*pbgroup.GetGroupApplicationListResp, error) { groupIDs, err := s.db.FindUserManagedGroupID(ctx, req.FromUserID) if err != nil { diff --git a/pkg/common/db/mgo/group.go b/pkg/common/db/mgo/group.go index 01bb64cdec..c63e3c3761 100644 --- a/pkg/common/db/mgo/group.go +++ b/pkg/common/db/mgo/group.go @@ -19,8 +19,7 @@ import ( "time" "github.com/OpenIMSDK/protocol/constant" - - "github.com/OpenIMSDK/tools/errs" + "github.com/OpenIMSDK/tools/errs" "github.com/OpenIMSDK/tools/mgoutil" "github.com/OpenIMSDK/tools/pagination" "github.com/openimsdk/open-im-server/v3/pkg/common/db/table/relation"