mirror of
https://github.com/cool-team-official/cool-admin-midway-packages.git
synced 2025-12-10 13:23:22 +00:00
fix
修复CoolQueue装饰器worker参数类型错误
This commit is contained in:
parent
665148ead7
commit
11f9269ff2
@ -4,7 +4,7 @@ import {
|
||||
saveClassMetadata,
|
||||
saveModule,
|
||||
} from '@midwayjs/core';
|
||||
import { JobsOptions } from 'bullmq';
|
||||
import { JobsOptions, WorkerOptions } from 'bullmq';
|
||||
|
||||
export const COOL_TASK_KEY = 'decorator:cool:task';
|
||||
|
||||
@ -12,7 +12,7 @@ export function CoolQueue(
|
||||
config = { type: 'comm', queue: {}, worker: {} } as {
|
||||
type?: 'comm' | 'getter' | 'noworker' | 'single';
|
||||
queue?: JobsOptions;
|
||||
worker?: WorkerOptions;
|
||||
worker?: Omit<WorkerOptions, 'connection' | 'prefix'>;
|
||||
}
|
||||
): ClassDecorator {
|
||||
return (target: any) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user