@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.
- package/beehive.js +1 -1
- 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]
|
|
271
|
+
switch (model.schema[field]?.type) {
|
|
272
272
|
case "char":
|
|
273
273
|
case "varchar":
|
|
274
274
|
case "text":
|