Merge pull request #13 from ssszp/patch-1

fix
This commit is contained in:
COOL 2025-03-12 16:05:45 +08:00 committed by GitHub
commit e4acd5c41a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) => {