user vor 6 Jahren
Ursprung
Commit
01a6a52a47
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1 1
      lib/index.js
  2. 1 1
      lib/index.js.map
  3. 1 1
      src/index.ts

+ 1 - 1
lib/index.js

@@ -143,7 +143,7 @@ class BankClient {
             const topicURL = this.urlBase + '/bank/private/' + encodeURIComponent(address) + '/' + encodeURIComponent(topic);
             yield this.webClient.requestJSON({
                 body: payload,
-                method: 'POST',
+                method: 'PUT',
                 url: topicURL
             });
         });

Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 1
lib/index.js.map


+ 1 - 1
src/index.ts

@@ -136,7 +136,7 @@ export class BankClient {
       const topicURL = this.urlBase + '/bank/private/' + encodeURIComponent(address) + '/' + encodeURIComponent(topic);
       await this.webClient.requestJSON({
         body: payload,
-        method: 'POST',
+        method: 'PUT',
         url: topicURL
       });
     }