@benjy2976/pmsg 0.1.4 → 0.1.5
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/src/Model.js +2 -2
package/package.json
CHANGED
package/src/Model.js
CHANGED
|
@@ -60,7 +60,7 @@ export default class Model {
|
|
|
60
60
|
get(url = '', params = {}, config = {}) {
|
|
61
61
|
params = Object.assign(params, this.params)
|
|
62
62
|
url = this.route + '/' + url
|
|
63
|
-
return this.instance.get(url, params, config)
|
|
63
|
+
return this.instance.get(url, { params }, config)
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
post(url = '', params = {}) {
|
|
@@ -72,7 +72,7 @@ export default class Model {
|
|
|
72
72
|
// Función para obtener el listado de Objetos de la base de datos
|
|
73
73
|
getAll(params = {}, config = {}) {
|
|
74
74
|
params = Object.assign(params, this.params)
|
|
75
|
-
return this.instance.get(this.route, params, config)
|
|
75
|
+
return this.instance.get(this.route, { params }, config)
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
// Función para crear un objeto en la base de datos
|