-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useClass ignores top-level name property #285
Labels
Comments
@solshark I ran into the same issue but using UPDATED: import { BullModuleOptions, BullOptionsFactory } from '@nestjs/bull';
import { ConfigService } from '@nestjs/config';
import { Injectable } from '@nestjs/common';
import { LINK_GAMES_QUEUE, QUEUE_REDIS_DB } from '@app/constants';
@Injectable()
export class QueueConfigService implements BullOptionsFactory {
constructor(private configService: ConfigService) {}
createBullOptions(): BullModuleOptions {
return {
name: YOUR_QUEUE_NAME,
redis: {
host: this.configService.get('REDIS_CACHE_HOST'),
port: this.configService.get('REDIS_CACHE_PORT'),
db: QUEUE_REDIS_DB,
},
};
}
} |
nOstap
pushed a commit
to nOstap/bull
that referenced
this issue
Apr 3, 2020
3 tasks
kamilmysliwiec
added a commit
that referenced
this issue
Apr 14, 2020
…operty fix(core): use root name prop as queue name when creating providers #285
Fixed in 0.1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm submitting a...
Current behavior
Expected behavior
If
registerQueueAsync
used withuseClass
in this way:where QueueConfigService looks like
queue created as
default
.The text was updated successfully, but these errors were encountered: