diff --git a/.env.dist b/.env.dist index 3af4122..183d6b3 100644 --- a/.env.dist +++ b/.env.dist @@ -9,6 +9,7 @@ DATABASE_URL="postgresql://mobicoop:mobicoop@v3-db:5432/mobicoop?schema=auth" # MESSAGE BROKER MESSAGE_BROKER_URI=amqp://v3-broker:5672 MESSAGE_BROKER_EXCHANGE=mobicoop +MESSAGE_BROKER_EXCHANGE_DURABILITY=true # OPA OPA_IMAGE=openpolicyagent/opa:0.57.0 diff --git a/package-lock.json b/package-lock.json index a14a6fb..1e06f8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mobicoop/auth", - "version": "0.6.1", + "version": "0.6.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mobicoop/auth", - "version": "0.6.1", + "version": "0.6.2", "license": "AGPL", "dependencies": { "@golevelup/nestjs-rabbitmq": "^4.0.0", diff --git a/package.json b/package.json index 85d8ef9..49e7865 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mobicoop/auth", - "version": "0.6.1", + "version": "0.6.2", "description": "Mobicoop V3 Auth Service", "author": "sbriat", "private": true, diff --git a/src/modules/authentication/infrastructure/authentication.repository.ts b/src/modules/authentication/infrastructure/authentication.repository.ts index f32dc12..87adb0a 100644 --- a/src/modules/authentication/infrastructure/authentication.repository.ts +++ b/src/modules/authentication/infrastructure/authentication.repository.ts @@ -10,6 +10,7 @@ import { AuthenticationRepositoryPort } from '../core/application/ports/authenti import { PrismaService } from './prisma.service'; import { AuthenticationMapper } from '../authentication.mapper'; import { AUTH_MESSAGE_PUBLISHER } from '../authentication.di-tokens'; +import { SERVICE_NAME } from '@src/app.constants'; type AuthenticationBaseModel = { uuid: string; @@ -59,7 +60,7 @@ export class AuthenticationRepository eventEmitter, new LoggerBase({ logger: new Logger(AuthenticationRepository.name), - domain: 'auth', + domain: SERVICE_NAME, messagePublisher, }), );