@overmap-ai/core 1.0.58-sign-up-hotfix.0 → 1.0.58-sign-up-hotfix.2
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/dist/overmap-core.js
CHANGED
|
@@ -5124,12 +5124,8 @@ class AuthService extends BaseApiService {
|
|
|
5124
5124
|
const initialDataUuid = v4();
|
|
5125
5125
|
const timeout = 5;
|
|
5126
5126
|
let timedOut = false;
|
|
5127
|
-
let initialDataRequestFinished = false;
|
|
5128
5127
|
const timeoutPromise = new Promise((_, reject) => {
|
|
5129
5128
|
setTimeout(() => {
|
|
5130
|
-
if (initialDataRequestFinished) {
|
|
5131
|
-
return void 0;
|
|
5132
|
-
}
|
|
5133
5129
|
timedOut = true;
|
|
5134
5130
|
store.dispatch(markForDeletion(uuid));
|
|
5135
5131
|
store.dispatch(markForDeletion(initialDataUuid));
|
|
@@ -5141,15 +5137,8 @@ class AuthService extends BaseApiService {
|
|
|
5141
5137
|
return void 0;
|
|
5142
5138
|
}
|
|
5143
5139
|
store.dispatch(setTokens(tokens));
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
return void 0;
|
|
5147
|
-
}
|
|
5148
|
-
initialDataRequestFinished = true;
|
|
5149
|
-
store.dispatch(setLoggedIn(true));
|
|
5150
|
-
store.dispatch({ type: "rehydrated/setRehydrated", payload: true });
|
|
5151
|
-
return void 0;
|
|
5152
|
-
});
|
|
5140
|
+
store.dispatch(setLoggedIn(true));
|
|
5141
|
+
store.dispatch({ type: "rehydrated/setRehydrated", payload: true });
|
|
5153
5142
|
});
|
|
5154
5143
|
return Promise.race([timeoutPromise, successPromise]);
|
|
5155
5144
|
}
|
|
@@ -8035,7 +8024,7 @@ class OrganizationService extends BaseApiService {
|
|
|
8035
8024
|
}
|
|
8036
8025
|
}
|
|
8037
8026
|
async create(name) {
|
|
8038
|
-
|
|
8027
|
+
return await this.client.enqueueRequest({
|
|
8039
8028
|
description: "Create organization",
|
|
8040
8029
|
method: HttpMethod.POST,
|
|
8041
8030
|
url: "/organizations/",
|
|
@@ -8043,8 +8032,6 @@ class OrganizationService extends BaseApiService {
|
|
|
8043
8032
|
blockers: [],
|
|
8044
8033
|
blocks: [`add-org-${name}`, "create-org"]
|
|
8045
8034
|
});
|
|
8046
|
-
await this.client.main.fetchInitialData(true);
|
|
8047
|
-
return result;
|
|
8048
8035
|
}
|
|
8049
8036
|
async update(organization) {
|
|
8050
8037
|
const promise = this.client.enqueueRequest({
|