mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
chore: eslint prefer-arrow-callback
This commit is contained in:
committed by
Julian Lam
parent
707b55b6a5
commit
b56d9e12b5
@@ -108,7 +108,7 @@ SocketCategories.setWatchState = async function (socket, data) {
|
||||
if (!data || !data.cid || !data.state) {
|
||||
throw new Error('[[error:invalid-data]]');
|
||||
}
|
||||
return await ignoreOrWatch(async function (uid, cids) {
|
||||
return await ignoreOrWatch(async (uid, cids) => {
|
||||
await user.setCategoryWatchState(uid, cids, categories.watchStates[data.state]);
|
||||
}, socket, data);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user