Просмотр исходного кода

:bug: missing braces in db connector

tags/0.0.3^2
toj 3 лет назад
Родитель
Сommit
0ed9e0a0e7
1 измененных файлов: 3 добавлений и 3 удалений
  1. 3
    3
      frontend/src/utils/db.js

+ 3
- 3
frontend/src/utils/db.js Просмотреть файл

@@ -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
 

Загрузка…
Отмена
Сохранить