|
|
|
@ -25,7 +25,7 @@ func (rpc *rpcChat) ClearMsg(_ context.Context, req *pbChat.ClearMsgReq) (*pbCha
|
|
|
|
|
return &pbChat.ClearMsgResp{ErrCode: constant.ErrDB.ErrCode, ErrMsg: errMsg}, nil
|
|
|
|
|
}
|
|
|
|
|
log.Debug(req.OperationID, "CleanUpUserMsgFromMongo args", req.UserID)
|
|
|
|
|
err = db.DB.CleanUpUserMsgFromMongo(req.UserID)
|
|
|
|
|
err = db.DB.CleanUpUserMsgFromMongo(req.UserID, req.OperationID)
|
|
|
|
|
if err != nil {
|
|
|
|
|
errMsg := "CleanUpUserMsgFromMongo failed " + err.Error() + req.OperationID + req.UserID
|
|
|
|
|
log.Error(req.OperationID, errMsg)
|
|
|
|
|