@frontegg/redux-store 6.147.0-alpha.1 → 6.147.0-alpha.3
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/auth/TenantsState/saga.js +2 -2
- package/index.js +1 -1
- package/node/auth/TenantsState/saga.js +1 -1
- package/node/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { call, put, takeEvery } from 'redux-saga/effects';
|
|
2
|
-
import { api } from '@frontegg/rest-api';
|
|
2
|
+
import { api, getCurrentUserTenantsFunction } from '@frontegg/rest-api';
|
|
3
3
|
import { actions } from '../reducer';
|
|
4
4
|
import { delay } from '../utils';
|
|
5
5
|
import { tenantsDemo } from '../dummy';
|
|
@@ -39,7 +39,7 @@ function* loadTenants({
|
|
|
39
39
|
}));
|
|
40
40
|
try {
|
|
41
41
|
var _payload$callback;
|
|
42
|
-
const userTenantsResponse = yield call(
|
|
42
|
+
const userTenantsResponse = yield call(getCurrentUserTenantsFunction());
|
|
43
43
|
yield put(actions.setTenantsState({
|
|
44
44
|
tenants: userTenantsResponse.tenants,
|
|
45
45
|
activeTenant: userTenantsResponse.activeTenant,
|
package/index.js
CHANGED
|
@@ -46,7 +46,7 @@ function* loadTenants({
|
|
|
46
46
|
}));
|
|
47
47
|
try {
|
|
48
48
|
var _payload$callback;
|
|
49
|
-
const userTenantsResponse = yield (0, _effects.call)(_restApi.
|
|
49
|
+
const userTenantsResponse = yield (0, _effects.call)((0, _restApi.getCurrentUserTenantsFunction)());
|
|
50
50
|
yield (0, _effects.put)(_reducer.actions.setTenantsState({
|
|
51
51
|
tenants: userTenantsResponse.tenants,
|
|
52
52
|
activeTenant: userTenantsResponse.activeTenant,
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/redux-store",
|
|
3
|
-
"version": "6.147.0-alpha.
|
|
3
|
+
"version": "6.147.0-alpha.3",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Frontegg LTD",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/runtime": "^7.18.6",
|
|
9
|
-
"@frontegg/rest-api": "3.1.
|
|
9
|
+
"@frontegg/rest-api": "3.1.34",
|
|
10
10
|
"@reduxjs/toolkit": "1.8.5",
|
|
11
11
|
"fast-deep-equal": "3.1.3",
|
|
12
12
|
"redux-saga": "^1.2.1",
|