From 9a2102e96c30b8a8d80326ec2132fbc96aa7df86 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Wed, 4 May 2022 18:35:13 +0800 Subject: [PATCH] delete msg by index --- pkg/common/db/mongoModel.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/common/db/mongoModel.go b/pkg/common/db/mongoModel.go index 2b241951b..986f5ab78 100644 --- a/pkg/common/db/mongoModel.go +++ b/pkg/common/db/mongoModel.go @@ -80,6 +80,7 @@ func (d *DataBases) GetMinSeqFromMongo2(uid string) (MinSeq uint32, err error) { // deleteMsgByLogic func (d *DataBases) DelMsgBySeqList(userID string, seqList []uint32, operationID string) (err error) { + log.Debug(operationID, utils.GetSelfFuncName(), "args ", userID, seqList) sortkeys.Uint32s(seqList) suffixUserID2SubSeqList := func(uid string, seqList []uint32) map[string][]uint32 { t := make(map[string][]uint32) @@ -111,6 +112,7 @@ func (d *DataBases) DelMsgBySeqList(userID string, seqList []uint32, operationID } func (d *DataBases) DelMsgBySeqListInOneDoc(suffixUserID string, seqList []uint32, operationID string) error { + log.Debug(operationID, utils.GetSelfFuncName(), "args ", suffixUserID, seqList) seqMsgList, indexList, err := d.GetMsgAndIndexBySeqListInOneMongo2(suffixUserID, seqList, operationID) if err != nil { return utils.Wrap(err, "")