"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BullMQAdapter = void 0; const base_1 = require("./base"); class BullMQAdapter extends base_1.BaseAdapter { constructor(queue, options = {}) { super(options); this.queue = queue; this.LIMIT = 1000; } getClient() { return this.queue.client; } getName() { return this.queue.name; } clean(jobStatus, graceTimeMs) { return this.queue.clean(graceTimeMs, this.LIMIT, jobStatus); } getJob(id) { return this.queue.getJob(id); } getJobs(jobStatuses, start, end) { return this.queue.getJobs(jobStatuses, start, end); } getJobCounts(...jobStatuses) { return this.queue.getJobCounts(...jobStatuses); } getJobLogs(id) { return this.queue.getJobLogs(id).then(({ logs }) => logs); } } exports.BullMQAdapter = BullMQAdapter; //# sourceMappingURL=bullMQ.js.map