Skip to content

Commit 8c46b19

Browse files
committed
Bruk gcp-hosted wsEventDistribusjon i q2
1 parent defa072 commit 8c46b19

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

packages/internarbeidsflate-decorator-v3/src/store/PropsUpdateHandler.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ export class PropsUpdateHandler extends SubstateHandler {
153153
};
154154
};
155155

156-
onPropsUpdated = (newProps: AppProps) => {
156+
onPropsUpdated = async (newProps: AppProps) => {
157157
if (this.#checkIfCritialPropsUpdate(newProps)) {
158158
this.#previousAppProps = newProps;
159-
this.#onCriticalPropsUpdated(newProps);
159+
await this.#onCriticalPropsUpdated(newProps);
160160
return;
161161
}
162162
if (!this.#previousStoreProps) return;

packages/internarbeidsflate-decorator-v3/src/utils/urlUtils.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,14 @@ export const wsEventDistribusjon = (
117117
switch (urlFormat) {
118118
case 'LOCAL':
119119
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+
}
124128
}
125129
};
126130

0 commit comments

Comments
 (0)