mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
adminsettings: Pay attention to --settings
This commit is contained in:
parent
46ad93024d
commit
19e9c2f114
2 changed files with 18 additions and 15 deletions
|
@ -24,7 +24,7 @@ exports.socketio = (hookName, {io}) => {
|
|||
socket.on('load', async (query) => {
|
||||
let data;
|
||||
try {
|
||||
data = await fsp.readFile('settings.json', 'utf8');
|
||||
data = await fsp.readFile(settings.settingsFilename, 'utf8');
|
||||
} catch (err) {
|
||||
return console.log(err);
|
||||
}
|
||||
|
@ -36,8 +36,8 @@ exports.socketio = (hookName, {io}) => {
|
|||
}
|
||||
});
|
||||
|
||||
socket.on('saveSettings', async (settings) => {
|
||||
await fsp.writeFile('settings.json', settings);
|
||||
socket.on('saveSettings', async (newSettings) => {
|
||||
await fsp.writeFile(settings.settingsFilename, newSettings);
|
||||
socket.emit('saveprogress', 'saved');
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue