|
@@ -37,6 +37,7 @@ export class AuthController implements UserServerInterface {
|
|
private doGenerateRecoveryCodes: GenerateRecoveryCodes,
|
|
private doGenerateRecoveryCodes: GenerateRecoveryCodes,
|
|
private logger: Logger,
|
|
private logger: Logger,
|
|
private sessionService: SessionServiceInterface,
|
|
private sessionService: SessionServiceInterface,
|
|
|
|
+ private transitionModeEnabled: boolean,
|
|
) {}
|
|
) {}
|
|
|
|
|
|
async update(_params: UserUpdateRequestParams): Promise<HttpResponse<UserUpdateResponse>> {
|
|
async update(_params: UserUpdateRequestParams): Promise<HttpResponse<UserUpdateResponse>> {
|
|
@@ -227,11 +228,13 @@ export class AuthController implements UserServerInterface {
|
|
if (userUuid !== null) {
|
|
if (userUuid !== null) {
|
|
headers = new Map([['x-invalidate-cache', userUuid]])
|
|
headers = new Map([['x-invalidate-cache', userUuid]])
|
|
|
|
|
|
- await this.domainEventPublisher.publish(
|
|
|
|
- this.domainEventFactory.createTransitionRequestedEvent({
|
|
|
|
- userUuid,
|
|
|
|
- }),
|
|
|
|
- )
|
|
|
|
|
|
+ if (this.transitionModeEnabled) {
|
|
|
|
+ await this.domainEventPublisher.publish(
|
|
|
|
+ this.domainEventFactory.createTransitionRequestedEvent({
|
|
|
|
+ userUuid,
|
|
|
|
+ }),
|
|
|
|
+ )
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
return {
|
|
return {
|