reorder functions for no-use-before-define

This commit is contained in:
Girish Ramakrishnan
2026-02-14 16:34:34 +01:00
parent 36aa641cb9
commit e9f96593c3
31 changed files with 2621 additions and 2648 deletions

View File

@@ -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,
};