Browse Source

fix:edit batch_msg/create

jimmyyem 7 months ago
parent
commit
7d26cf4de0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/logic/batch_msg/create_batch_msg_logic.go

+ 1 - 1
internal/logic/batch_msg/create_batch_msg_logic.go

@@ -198,7 +198,7 @@ func (l *CreateBatchMsgLogic) CreateBatchMsg(req *types.BatchMsgInfo) (*types.Ba
 				SetOrganizationID(organizationId),
 			)
 		}
-		err = l.svcCtx.DB.MessageRecords.CreateBulk(bulkCreate...).Exec(l.ctx)
+		err = tx.MessageRecords.CreateBulk(bulkCreate...).Exec(l.ctx)
 		if err != nil {
 			_ = tx.Rollback()
 			return nil, dberrorhandler.DefaultEntError(l.Logger, err, req)