From a002271e2642503e26bef93b2d17342bd2aea556 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Mon, 18 Apr 2016 14:54:49 -0700 Subject: [PATCH] don't track jobs internally it'll likely make more sense to just look them up at request time --- src/index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/index.js b/src/index.js index aa843ab..b8a48fc 100644 --- a/src/index.js +++ b/src/index.js @@ -8,9 +8,6 @@ export default class Elastique extends events.EventEmitter { if (!index) throw new Error('Must specify an index to write to'); super(); - - this.ready = true; - this.jobs = []; this.index = index; this.settings = Object.assign({ interval: '1w', @@ -25,7 +22,6 @@ export default class Elastique extends events.EventEmitter { }, opts); var job = new Job(this, type, payload, options); - this.jobs.push(job.id); return job; } }