fix typo
This commit is contained in:
parent
b8308cfe37
commit
7818ce2d0a
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "mobicoop-v3-auth",
|
"name": "@mobicoop/auth",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "mobicoop-v3-auth",
|
"name": "@mobicoop/auth",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"license": "AGPL",
|
"license": "AGPL",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -12,7 +12,7 @@ export class AuthenticationMessagerController {
|
||||||
constructor(private readonly _commandBus: CommandBus) {}
|
constructor(private readonly _commandBus: CommandBus) {}
|
||||||
|
|
||||||
@RabbitSubscribe({
|
@RabbitSubscribe({
|
||||||
name: 'user-update',
|
name: 'userUpdate',
|
||||||
})
|
})
|
||||||
public async userUpdatedHandler(message: string) {
|
public async userUpdatedHandler(message: string) {
|
||||||
const updatedUser = JSON.parse(message);
|
const updatedUser = JSON.parse(message);
|
||||||
|
@ -38,7 +38,7 @@ export class AuthenticationMessagerController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@RabbitSubscribe({
|
@RabbitSubscribe({
|
||||||
name: 'user-delete',
|
name: 'userDelete',
|
||||||
})
|
})
|
||||||
public async userDeletedHandler(message: string) {
|
public async userDeletedHandler(message: string) {
|
||||||
const deletedUser = JSON.parse(message);
|
const deletedUser = JSON.parse(message);
|
||||||
|
|
|
@ -23,7 +23,6 @@ import { Messager } from './adapters/secondaries/messager';
|
||||||
CqrsModule,
|
CqrsModule,
|
||||||
RabbitMQModule.forRootAsync(RabbitMQModule, {
|
RabbitMQModule.forRootAsync(RabbitMQModule, {
|
||||||
imports: [ConfigModule],
|
imports: [ConfigModule],
|
||||||
inject: [ConfigService],
|
|
||||||
useFactory: async (configService: ConfigService) => ({
|
useFactory: async (configService: ConfigService) => ({
|
||||||
exchanges: [
|
exchanges: [
|
||||||
{
|
{
|
||||||
|
@ -45,6 +44,7 @@ import { Messager } from './adapters/secondaries/messager';
|
||||||
connectionInitOptions: { wait: false },
|
connectionInitOptions: { wait: false },
|
||||||
enableControllerDiscovery: true,
|
enableControllerDiscovery: true,
|
||||||
}),
|
}),
|
||||||
|
inject: [ConfigService],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
controllers: [AuthenticationController, AuthenticationMessagerController],
|
controllers: [AuthenticationController, AuthenticationMessagerController],
|
||||||
|
|
Loading…
Reference in New Issue