Explorar el Código

:bug: missing braces in db connector

tags/0.0.3^2
toj hace 3 años
padre
commit
0ed9e0a0e7
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      frontend/src/utils/db.js

+ 3
- 3
frontend/src/utils/db.js Ver fichero

50
     async get(endpoint) {
50
     async get(endpoint) {
51
         return await this._tryFetch({
51
         return await this._tryFetch({
52
             endpoint,
52
             endpoint,
53
-            header: this._makeHeader(this._verbs.get),
53
+            header: this._makeHeader({ method: this._verbs.get }),
54
         })
54
         })
55
     }
55
     }
56
     async post(endpoint, payload = {}) {
56
     async post(endpoint, payload = {}) {
57
         return await this._tryFetch({
57
         return await this._tryFetch({
58
             endpoint,
58
             endpoint,
59
-            header: this._makeHeader(this._verbs.post, payload),
59
+            header: this._makeHeader({ method: this._verbs.post, payload }),
60
         })
60
         })
61
     }
61
     }
62
     async patch(endpoint, payload = {}) {
62
     async patch(endpoint, payload = {}) {
63
         return await this._tryFetch({
63
         return await this._tryFetch({
64
             endpoint,
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
 

Loading…
Cancelar
Guardar