         }
 
       if page < totalPages and page < 10
-        setTimeout(this.search, 5000, query,isKindle,month, page + 1,callback, nothingCallBack)
+        setTimeout(this.search, 5000, query,isKindle, page + 1,callback, nothingCallBack)
 
     ).catch((err) ->
       console.log("error:", err)


    this.operationHelper = new OperationHelper(config)

  search: (query, isKindle, month, page, callback, nothingCallBack) ->

    binding = if isKindle then 'kindle' else 'not kindle'

    this.operationHelper.execute('ItemSearch',{
      'SearchIndex': 'Books',

moment = require 'moment'
_ = require 'lodash'

class AmazonSearch
  comicNode = "2278488051"
  @operationHelper
