abap-local-client 1.4.13 → 1.4.14
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/package.json +1 -1
- package/sso-sap-client.mjs +2 -2
package/package.json
CHANGED
package/sso-sap-client.mjs
CHANGED
|
@@ -785,7 +785,7 @@ class WebSocketClient {
|
|
|
785
785
|
for (const lock of allLocks) {
|
|
786
786
|
const unlockUrl = buildAdtUnlockUrl(lock.name, lock.type, lock.lockHandle);
|
|
787
787
|
if (!unlockUrl) { console.log(` ⚠️ No ADT path for type ${lock.type} — skipping`); failed++; continue; }
|
|
788
|
-
const r = await this.sapClient.executeCallspec({ method: '
|
|
788
|
+
const r = await this.sapClient.executeCallspec({ method: 'POST', url: unlockUrl, headers: {}, body: '' });
|
|
789
789
|
if (r.success) { this.lockManager.clearLock(lock.name, lock.type); unlocked++; console.log(` ✅ Unlocked ${lock.type}:${lock.name}`); }
|
|
790
790
|
else { failed++; console.log(` ⚠️ Failed to unlock ${lock.type}:${lock.name}: ${r.error || r.status}`); }
|
|
791
791
|
}
|
|
@@ -798,7 +798,7 @@ class WebSocketClient {
|
|
|
798
798
|
const handle = lockHandle || this.lockManager.getLock(objectName, objectType)?.lockHandle || '';
|
|
799
799
|
const unlockUrl = buildAdtUnlockUrl(objectName, objectType, handle);
|
|
800
800
|
if (!unlockUrl) { results.push({ success: false, status: 0, error: `Unknown object type: ${objectType}` }); allSuccessful = false; break; }
|
|
801
|
-
const r = await this.sapClient.executeCallspec({ method: '
|
|
801
|
+
const r = await this.sapClient.executeCallspec({ method: 'POST', url: unlockUrl, headers: {}, body: '' });
|
|
802
802
|
if (r.success) this.lockManager.clearLock(objectName, objectType);
|
|
803
803
|
results.push(r);
|
|
804
804
|
if (!r.success) { allSuccessful = false; break; }
|