migrate firewall configuration into database
the ports.json is for the moment server specific
This commit is contained in:
+3
-2
@@ -11,7 +11,7 @@ exports = module.exports = {
|
||||
_clear: clear
|
||||
};
|
||||
|
||||
var assert = require('assert'),
|
||||
const assert = require('assert'),
|
||||
BoxError = require('./boxerror.js'),
|
||||
database = require('./database.js');
|
||||
|
||||
@@ -30,8 +30,9 @@ function get(key, callback) {
|
||||
});
|
||||
}
|
||||
|
||||
// won't get the blobs
|
||||
function getAll(callback) {
|
||||
database.query(`SELECT ${SETTINGS_FIELDS} FROM settings ORDER BY name`, function (error, results) {
|
||||
database.query(`SELECT ${SETTINGS_FIELDS} FROM settings WHERE value IS NOT NULL ORDER BY name`, function (error, results) {
|
||||
if (error) return callback(new BoxError(BoxError.DATABASE_ERROR, error));
|
||||
|
||||
callback(null, results);
|
||||
|
||||
Reference in New Issue
Block a user