mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
removed sourceId where it's not necessary (stored in CLS instead)
This commit is contained in:
@@ -19,13 +19,12 @@ async function getAllowedSettings() {
|
||||
|
||||
async function updateSetting(req) {
|
||||
const body = req.body;
|
||||
const sourceId = req.headers.source_id;
|
||||
|
||||
if (!ALLOWED_OPTIONS.includes(body['name'])) {
|
||||
return [400, "not allowed option to set"];
|
||||
}
|
||||
|
||||
await options.setOption(body['name'], body['value'], sourceId);
|
||||
await options.setOption(body['name'], body['value']);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user