Browse Source

Fix admin save config Number item as String

pull/6/head
Menci 7 years ago
parent
commit
5a8352aff6
  1. 2
      modules/admin.js

2
modules/admin.js

@ -128,6 +128,8 @@ app.post('/admin/config', async (req, res) => {
let val;
if (configItems[i].type === Boolean) {
val = req.body[i] === 'on';
} else if (configItems[i].type === Number) {
val = Number(req.body[i]);
} else {
val = req.body[i];
}

Loading…
Cancel
Save