js: Kill setGlobalSettings.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 15m0s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 15m0s
This commit is contained in:
parent
36cc9398c7
commit
1dd7e4347c
15
core/core.js
15
core/core.js
@ -505,7 +505,7 @@ async function getProcessBlob(blobId, key, options) {
|
|||||||
print('Setting', key, value);
|
print('Setting', key, value);
|
||||||
let settings = await loadSettings();
|
let settings = await loadSettings();
|
||||||
settings[key] = value;
|
settings[key] = value;
|
||||||
await setGlobalSettings(settings);
|
await new Database('core').set('settings', JSON.stringify(settings));
|
||||||
print('Done.');
|
print('Done.');
|
||||||
};
|
};
|
||||||
imports.core.deleteUser = async function (user) {
|
imports.core.deleteUser = async function (user) {
|
||||||
@ -812,19 +812,6 @@ async function getProcessBlob(blobId, key, options) {
|
|||||||
return process;
|
return process;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* TODOC
|
|
||||||
* @param {*} settings
|
|
||||||
* @returns
|
|
||||||
*/
|
|
||||||
async function setGlobalSettings(settings) {
|
|
||||||
try {
|
|
||||||
return await new Database('core').set('settings', JSON.stringify(settings));
|
|
||||||
} catch (error) {
|
|
||||||
print('Error storing settings:', error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODOC
|
* TODOC
|
||||||
* @param {*} response
|
* @param {*} response
|
||||||
|
Loading…
Reference in New Issue
Block a user