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