Przeglądaj źródła

:bug: missing braces in db connector

tags/0.0.3^2
toj 3 lat temu
rodzic
commit
0ed9e0a0e7
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3
    3
      frontend/src/utils/db.js

+ 3
- 3
frontend/src/utils/db.js Wyświetl plik

@@ -50,19 +50,19 @@ class Connector {
50 50
     async get(endpoint) {
51 51
         return await this._tryFetch({
52 52
             endpoint,
53
-            header: this._makeHeader(this._verbs.get),
53
+            header: this._makeHeader({ method: this._verbs.get }),
54 54
         })
55 55
     }
56 56
     async post(endpoint, payload = {}) {
57 57
         return await this._tryFetch({
58 58
             endpoint,
59
-            header: this._makeHeader(this._verbs.post, payload),
59
+            header: this._makeHeader({ method: this._verbs.post, payload }),
60 60
         })
61 61
     }
62 62
     async patch(endpoint, payload = {}) {
63 63
         return await this._tryFetch({
64 64
             endpoint,
65
-            header: this._makeHeader(this._verbs.patch, payload),
65
+            header: this._makeHeader({ method: this._verbs.patch, payload }),
66 66
         })
67 67
     }
68 68
 

Ładowanie…
Anuluj
Zapisz