mirror of
https://gitlab.com/mobicoop/v3/service/auth.git
synced 2026-01-02 21:02:41 +00:00
fix typo
This commit is contained in:
@@ -12,7 +12,7 @@ export class AuthenticationMessagerController {
|
||||
constructor(private readonly _commandBus: CommandBus) {}
|
||||
|
||||
@RabbitSubscribe({
|
||||
name: 'user-update',
|
||||
name: 'userUpdate',
|
||||
})
|
||||
public async userUpdatedHandler(message: string) {
|
||||
const updatedUser = JSON.parse(message);
|
||||
@@ -38,7 +38,7 @@ export class AuthenticationMessagerController {
|
||||
}
|
||||
|
||||
@RabbitSubscribe({
|
||||
name: 'user-delete',
|
||||
name: 'userDelete',
|
||||
})
|
||||
public async userDeletedHandler(message: string) {
|
||||
const deletedUser = JSON.parse(message);
|
||||
|
||||
@@ -23,7 +23,6 @@ import { Messager } from './adapters/secondaries/messager';
|
||||
CqrsModule,
|
||||
RabbitMQModule.forRootAsync(RabbitMQModule, {
|
||||
imports: [ConfigModule],
|
||||
inject: [ConfigService],
|
||||
useFactory: async (configService: ConfigService) => ({
|
||||
exchanges: [
|
||||
{
|
||||
@@ -45,6 +44,7 @@ import { Messager } from './adapters/secondaries/messager';
|
||||
connectionInitOptions: { wait: false },
|
||||
enableControllerDiscovery: true,
|
||||
}),
|
||||
inject: [ConfigService],
|
||||
}),
|
||||
],
|
||||
controllers: [AuthenticationController, AuthenticationMessagerController],
|
||||
|
||||
Reference in New Issue
Block a user