From ff3c0e269b5e79d6cc2b81e72c32113765b82125 Mon Sep 17 00:00:00 2001 From: seif khelifi Date: Thu, 5 Sep 2024 15:35:01 +0300 Subject: [PATCH] Reduced-Function_Parameters --- src/groups/create.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/groups/create.js b/src/groups/create.js index 84c0fb9d9f..901fdc2e57 100644 --- a/src/groups/create.js +++ b/src/groups/create.js @@ -55,13 +55,13 @@ module.exports = function (Groups) { } } - mock_data = {data, timestamp} + mock_dat = {data, timestamp} // Function to create group data - function createGroupData(mock_data, isSystem, isHidden, isPrivate, + function createGroupData(mock_dat, isSystem, isHidden, isPrivate, disableJoinRequests, disableLeave, memberCount) { - data = mock_data.data - timestamp = mock_data.timestamp + data = mock_dat.data + timestamp = mock_dat.timestamp return { name: data.name, slug: slugify(data.name),