@kumori/aurora-backend-handler 1.1.31 → 1.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/tenant-api-service.ts +2 -2
- package/backend-handler.ts +11 -11
- package/package.json +1 -1
|
@@ -524,11 +524,11 @@ export const updateTenantHTTP = async (tenant: Tenant) => {
|
|
|
524
524
|
eventHelper.notification.publish.creation(tenantUpdateErrorNotification);
|
|
525
525
|
}
|
|
526
526
|
};
|
|
527
|
-
export const listTenantsHTTP = () => {
|
|
527
|
+
export const listTenantsHTTP = async () => {
|
|
528
528
|
const url = new URL(
|
|
529
529
|
`${environment.apiServer.baseUrl}/api/${environment.apiServer.apiVersion}/tenant`
|
|
530
530
|
);
|
|
531
|
-
const response = fetch(url.toString(), {
|
|
531
|
+
const response = await fetch(url.toString(), {
|
|
532
532
|
method: "GET",
|
|
533
533
|
});
|
|
534
534
|
}
|
package/backend-handler.ts
CHANGED
|
@@ -98,19 +98,19 @@ export class BackendHandler {
|
|
|
98
98
|
"globalEventHandler inválido. Asegúrate de pasar una instancia correcta de EventHandler.",
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
|
-
listTenantsHTTP();
|
|
102
101
|
eventHelper = new EventHelper(globalEventHandler);
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
listTenantsHTTP().then(() => {
|
|
103
|
+
eventHelper.user.subscribe.load((data: UserData) => {
|
|
104
|
+
initializeGlobalWebSocketClient(token, "", "", data);
|
|
105
|
+
});
|
|
106
|
+
const loadedCb = (data: UserData) => {
|
|
107
|
+
updateUserComplete(data);
|
|
108
|
+
};
|
|
109
|
+
eventHelper.user.subscribe.loaded(loadedCb);
|
|
110
|
+
this.changeRoute(route);
|
|
111
|
+
environment.apiServer.baseUrl = baseUrl;
|
|
112
|
+
environment.apiServer.apiVersion = apiVersion;
|
|
105
113
|
});
|
|
106
|
-
const loadedCb = (data: UserData) => {
|
|
107
|
-
updateUserComplete(data);
|
|
108
|
-
};
|
|
109
|
-
eventHelper.user.subscribe.loaded(loadedCb);
|
|
110
|
-
|
|
111
|
-
this.changeRoute(route);
|
|
112
|
-
environment.apiServer.baseUrl = baseUrl;
|
|
113
|
-
environment.apiServer.apiVersion = apiVersion;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/**
|