@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Model.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benjy2976/pmsg",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "generator of models and store default for pinia",
5
5
  "main": "src/Model.js",
6
6
  "scripts": {
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