@etsoo/appscript 1.1.90 → 1.1.91
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/lib/cjs/app/CoreApp.js +5 -1
- package/lib/mjs/app/CoreApp.js +5 -1
- package/package.json +1 -1
- package/src/app/CoreApp.ts +5 -1
package/lib/cjs/app/CoreApp.js
CHANGED
|
@@ -822,7 +822,11 @@ class CoreApp {
|
|
|
822
822
|
*/
|
|
823
823
|
async switchOrg(id, serviceId) {
|
|
824
824
|
const api = `Organization/Switch`;
|
|
825
|
-
const result = await this.api.put(api, {
|
|
825
|
+
const result = await this.api.put(api, {
|
|
826
|
+
id,
|
|
827
|
+
serviceId,
|
|
828
|
+
deviceId: this.deviceId
|
|
829
|
+
});
|
|
826
830
|
if (result)
|
|
827
831
|
return await this.refreshToken();
|
|
828
832
|
return result;
|
package/lib/mjs/app/CoreApp.js
CHANGED
|
@@ -819,7 +819,11 @@ export class CoreApp {
|
|
|
819
819
|
*/
|
|
820
820
|
async switchOrg(id, serviceId) {
|
|
821
821
|
const api = `Organization/Switch`;
|
|
822
|
-
const result = await this.api.put(api, {
|
|
822
|
+
const result = await this.api.put(api, {
|
|
823
|
+
id,
|
|
824
|
+
serviceId,
|
|
825
|
+
deviceId: this.deviceId
|
|
826
|
+
});
|
|
823
827
|
if (result)
|
|
824
828
|
return await this.refreshToken();
|
|
825
829
|
return result;
|
package/package.json
CHANGED
package/src/app/CoreApp.ts
CHANGED
|
@@ -1479,7 +1479,11 @@ export abstract class CoreApp<
|
|
|
1479
1479
|
*/
|
|
1480
1480
|
async switchOrg(id: number, serviceId?: number) {
|
|
1481
1481
|
const api = `Organization/Switch`;
|
|
1482
|
-
const result = await this.api.put<boolean>(api, {
|
|
1482
|
+
const result = await this.api.put<boolean>(api, {
|
|
1483
|
+
id,
|
|
1484
|
+
serviceId,
|
|
1485
|
+
deviceId: this.deviceId
|
|
1486
|
+
});
|
|
1483
1487
|
if (result) return await this.refreshToken();
|
|
1484
1488
|
return result;
|
|
1485
1489
|
}
|