js: Kill setGlobalSettings.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 15m0s

This commit is contained in:
Cory McWilliams 2024-10-16 21:02:48 -04:00
parent 36cc9398c7
commit 1dd7e4347c

View File

@ -505,7 +505,7 @@ async function getProcessBlob(blobId, key, options) {
print('Setting', key, value);
let settings = await loadSettings();
settings[key] = value;
await setGlobalSettings(settings);
await new Database('core').set('settings', JSON.stringify(settings));
print('Done.');
};
imports.core.deleteUser = async function (user) {
@ -812,19 +812,6 @@ async function getProcessBlob(blobId, key, options) {
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
* @param {*} response