mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
chore: eslint prefer-template
This commit is contained in:
committed by
Julian Lam
parent
4ee0f1459d
commit
707b55b6a5
@@ -28,7 +28,7 @@ Config.setMultiple = async function (socket, data) {
|
||||
Object.keys(newData).forEach(function (key) {
|
||||
if (newData[key] !== oldData[key]) {
|
||||
changes[key] = newData[key];
|
||||
changes[key + '_old'] = meta.config[key];
|
||||
changes[`${key}_old`] = meta.config[key];
|
||||
}
|
||||
});
|
||||
await meta.configs.setMultiple(data);
|
||||
|
||||
Reference in New Issue
Block a user