File tree 2 files changed +10
-6
lines changed
packages/internarbeidsflate-decorator-v3/src
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -153,10 +153,10 @@ export class PropsUpdateHandler extends SubstateHandler {
153
153
} ;
154
154
} ;
155
155
156
- onPropsUpdated = ( newProps : AppProps ) => {
156
+ onPropsUpdated = async ( newProps : AppProps ) => {
157
157
if ( this . #checkIfCritialPropsUpdate( newProps ) ) {
158
158
this . #previousAppProps = newProps ;
159
- this . #onCriticalPropsUpdated( newProps ) ;
159
+ await this . #onCriticalPropsUpdated( newProps ) ;
160
160
return ;
161
161
}
162
162
if ( ! this . #previousStoreProps) return ;
Original file line number Diff line number Diff line change @@ -117,10 +117,14 @@ export const wsEventDistribusjon = (
117
117
switch ( urlFormat ) {
118
118
case 'LOCAL' :
119
119
return 'ws://localhost:4000/ws/' ;
120
- default :
121
- return `wss://veilederflatehendelser${ findEnvString (
122
- environment ,
123
- ) } ${ subdomain } .adeo.no/modiaeventdistribution/ws/`;
120
+ default : {
121
+ if ( environment === 'q2' )
122
+ return `wss://modiaeventdistribution${ naisDomain ( environment ) } /ws/` ;
123
+ else
124
+ return `wss://veilederflatehendelser${ findEnvString (
125
+ environment ,
126
+ ) } ${ subdomain } .adeo.no/modiaeventdistribution/ws/`;
127
+ }
124
128
}
125
129
} ;
126
130
You can’t perform that action at this time.
0 commit comments