rename add to addJob

This commit is contained in:
2016-04-25 15:30:17 -07:00
parent 662d8a177c
commit 6ff2f2cb99

View File

@@ -34,7 +34,7 @@ export default class Elastique extends events.EventEmitter {
});
}
add(type, payload, opts = {}) {
addJob(type, payload, opts = {}) {
const timestamp = indexTimestamp(this.settings.interval);
const index = `${this.index}-${timestamp}`;