 
 rerunUpdateTaskObject = (taskID, transactionID, response, callback) ->
 
+  console.log(JSON.parse(JSON.stringify(response)))
+  
+
   # decrement the remainingTransactions property
   TaskModel.update 
     _id: taskID

  TaskModel.findOne
    _id: taskID
  , (err, task) ->

    if task.status == 'NotStarted'
      task.status = 'Processing'
    
    task.transactions.forEach (tx) ->
      if tx.tid == transactionID

###############################################################################

rerunGetTaskTransactionsData = (taskID, transactionID, callback) ->

  # find the tasks object for the transaction being processed
  TaskModel.findById taskID, (err, task) ->
    if err
