@galadrim/galadmin 0.1.137 → 0.1.139

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 CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@galadrim/galadmin",
3
- "version": "0.1.137",
3
+ "version": "0.1.139",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
7
- "postinstall": "patch-package",
8
7
  "build": "tsc"
9
8
  },
10
9
  "author": "",
package/src/api.ts CHANGED
@@ -533,7 +533,7 @@ export default (db, config, user) => {
533
533
  app.post('/updateRecord', async function (req, res, next) {
534
534
  const view = config.views[req.body.viewIndex];
535
535
  for (let key in req.body.data) {
536
- if (req.body.data[key] == "NULL" || req.body.data[key] == "") {
536
+ if (req.body.data[key] == "NULL" || req.body.data[key] === "") {
537
537
  req.body.data[key] = null
538
538
  }
539
539
  }