@tsed/bullmq 7.38.1 → 7.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,5 +5,5 @@ import { Job as BullMQJob } from "bullmq";
5
5
  export declare class JobDispatcher {
6
6
  private readonly injector;
7
7
  constructor(injector: InjectorService);
8
- dispatch<T extends JobMethods>(job: Type<JobMethods>, payload?: Parameters<T["handle"]>[0]): Promise<BullMQJob>;
8
+ dispatch<T extends JobMethods>(job: Type<T>, payload?: Parameters<T["handle"]>[0]): Promise<BullMQJob>;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/bullmq",
3
- "version": "7.38.1",
3
+ "version": "7.39.1",
4
4
  "private": false,
5
5
  "description": "BullMQ integration for Ts.ED",
6
6
  "keywords": [
@@ -29,12 +29,12 @@
29
29
  "tslib": "2.5.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@tsed/common": "7.38.1",
33
- "@tsed/core": "7.38.1",
34
- "@tsed/di": "7.38.1",
35
- "@tsed/eslint": "7.38.1",
36
- "@tsed/schema": "7.38.1",
37
- "@tsed/typescript": "7.38.1",
32
+ "@tsed/common": "7.39.1",
33
+ "@tsed/core": "7.39.1",
34
+ "@tsed/di": "7.39.1",
35
+ "@tsed/eslint": "7.39.1",
36
+ "@tsed/schema": "7.39.1",
37
+ "@tsed/typescript": "7.39.1",
38
38
  "bullmq": "^4.12.3",
39
39
  "eslint": "^8.12.0",
40
40
  "ts-mockito": "^2.6.1"
@@ -8,7 +8,7 @@ export class JobDispatcher {
8
8
  constructor(private readonly injector: InjectorService) {}
9
9
 
10
10
  // eslint-disable-next-line require-await
11
- public async dispatch<T extends JobMethods>(job: Type<JobMethods>, payload: Parameters<T["handle"]>[0] = {}): Promise<BullMQJob> {
11
+ public async dispatch<T extends JobMethods>(job: Type<T>, payload: Parameters<T["handle"]>[0] = {}): Promise<BullMQJob> {
12
12
  const store = Store.from(job).get<JobStore>("bullmq");
13
13
 
14
14
  const queue = this.injector.getMany<Queue>("bullmq:queue").find((queue) => queue.name === store.queue);