1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix missing promise on setUserSettings

This commit is contained in:
Nick O'Leary 2020-12-03 11:24:28 +00:00
parent fca21ac126
commit fc7967d455
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -179,6 +179,7 @@ var persistentSettings = {
userSettings[username] = settings; userSettings[username] = settings;
try { try {
assert.deepEqual(current,settings); assert.deepEqual(current,settings);
return Promise.resolve();
} catch(err) { } catch(err) {
globalSettings.users = userSettings; globalSettings.users = userSettings;
return storage.saveSettings(clone(globalSettings)); return storage.saveSettings(clone(globalSettings));