reorder functions for no-use-before-define
This commit is contained in:
@@ -29,10 +29,6 @@ const REVERSE_PROXY_CONFIG_KEY = 'reverseproxy_config';
|
||||
const SERVICES_CONFIG_KEY = 'services_config';
|
||||
const TIME_ZONE_KEY = 'time_zone';
|
||||
const TRUSTED_IPS_KEY = 'trusted_ips_key';
|
||||
const WEB_SERVER_ORIGIN_KEY = 'web_server_origin';
|
||||
const _clear = clear;
|
||||
const _set = set;
|
||||
|
||||
|
||||
const SETTINGS_FIELDS = [ 'name', 'value' ].join(',');
|
||||
const SETTINGS_BLOB_FIELDS = [ 'name', 'valueBlob' ].join(',');
|
||||
@@ -86,6 +82,10 @@ async function clear() {
|
||||
await database.query('DELETE FROM settings');
|
||||
}
|
||||
|
||||
const WEB_SERVER_ORIGIN_KEY = 'web_server_origin';
|
||||
|
||||
const _clear = clear;
|
||||
|
||||
export default {
|
||||
get,
|
||||
set,
|
||||
@@ -122,5 +122,5 @@ export default {
|
||||
TRUSTED_IPS_KEY,
|
||||
WEB_SERVER_ORIGIN_KEY,
|
||||
_clear,
|
||||
_set,
|
||||
_set: set,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user