@drdoc-com/pi-drdoc 1.0.5 → 1.0.6

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/README.md CHANGED
@@ -61,7 +61,7 @@ Format:
61
61
  ```
62
62
  Example:
63
63
  ```bash
64
- /drdoc_login https://drdoc.com demo password "" 1
64
+ /drdoc_login https://drdoc.com demo password 123456 1
65
65
  ```
66
66
 
67
67
  And signout/logout:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drdoc-com/pi-drdoc",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Dr.DOC DMS Integration Package for PI Agent",
5
5
  "type": "module",
6
6
  "license": "Apache License 2.0",
package/src/tools.ts CHANGED
@@ -16,7 +16,7 @@ export async function getClient(config: DrDocConfig = {} as DrDocConfig, force:
16
16
  clientInstance = new DrDocClient(config);
17
17
 
18
18
  // Verbindung testen
19
- if (await clientInstance.state()) {
19
+ if (!force && (await clientInstance.state())) {
20
20
  msgInfo('Bereits in Dr.DOC angemeldet. Die Session ist aktiv.');
21
21
  }
22
22
  else {