@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.
@@ -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, { id, serviceId });
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;
@@ -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, { id, serviceId });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.1.90",
3
+ "version": "1.1.91",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -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, { id, serviceId });
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
  }