@bee.js/node 0.0.77 → 0.0.78

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/beehive.js +1 -1
  2. package/package.json +1 -1
package/beehive.js CHANGED
@@ -268,7 +268,7 @@ module.exports = function hive(req = {}, res = {}, model = null) {
268
268
  let val = row[field];
269
269
 
270
270
  // TODO colocar escape para sql injection
271
- switch (model.schema[field].type) {
271
+ switch (model.schema[field]?.type) {
272
272
  case "char":
273
273
  case "varchar":
274
274
  case "text":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bee.js/node",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "description": "A JavaScript framework for making Node.js API´s",
5
5
  "main": "index.js",
6
6
  "scripts": {