@galadrim/galadmin 0.1.137 → 0.1.138
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/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/api.ts +1 -1
package/package.json
CHANGED
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
|
}
|