diff --git a/pkg/common/db/cache/msg.go b/pkg/common/db/cache/msg.go index af8ef2f3d..e13861b80 100644 --- a/pkg/common/db/cache/msg.go +++ b/pkg/common/db/cache/msg.go @@ -365,7 +365,7 @@ func (c *msgCache) UserDeleteMsgs(ctx context.Context, conversationID string, se } func (c *msgCache) GetUserDelList(ctx context.Context, userID, conversationID string) (seqs []int64, err error) { - result, err := c.rdb.SMembers(ctx, c.getUserDelList(userID, conversationID)).Result() + result, err := c.rdb.SMembers(ctx, c.getUserDelList(conversationID, userID)).Result() if err != nil { return nil, errs.Wrap(err) } diff --git a/pkg/common/db/controller/msg_test.go b/pkg/common/db/controller/msg_test.go index 88e78bf16..2ccefab19 100644 --- a/pkg/common/db/controller/msg_test.go +++ b/pkg/common/db/controller/msg_test.go @@ -3,13 +3,14 @@ package controller import ( "context" "fmt" - "github.com/OpenIMSDK/Open-IM-Server/pkg/common/log" "math/rand" "strconv" "sync" "testing" "time" + "github.com/OpenIMSDK/Open-IM-Server/pkg/common/log" + "github.com/OpenIMSDK/Open-IM-Server/pkg/common/config" unRelationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/unrelation" "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/unrelation" @@ -187,7 +188,7 @@ func Test_Revoke(t *testing.T) { } func Test_FindBySeq(t *testing.T) { - if err := log.InitFromConfig("", 6, true, false, "", 2); err != nil { + if err := log.InitFromConfig("", "", 6, true, false, "", 2); err != nil { t.Fatal(err) } db := GetDB()