 # a custom route for prefetched content
 getRoute = (options)-> return "scriptblock"
 
-preFetchItems = (options, client, callback) ->
+prefetchedItems = (options, client, callback) ->
 
   {bongoModels, client, intro} = options
 

      prefetchedFeeds = cachedRoutes[route]
      return callback null, prefetchedFeeds

  return preFetchItems options, client, callback

activityFetcher = ->
  return console.log "interval options are not valid" unless intervalOptions
  {client} = intervalOptions
  prefetchedItems intervalOptions, client, (err, data)->
    if err
      return console.log "An error occured while fetching in interval", err
    else
      console.log "updating in interval"

intervalFetcher = setInterval activityFetcher, 25000

module.exports = (options = {}, callback)->

