Skip to content

Commit

Permalink
exported function directly
Browse files Browse the repository at this point in the history
  • Loading branch information
shobhan-sundar-goutam committed Oct 14, 2024
1 parent 2a10699 commit fc320d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utils/removeDiscordRole.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const discordServices = require("../services/discordService");
*
* @returns {Promise<Object>} - Result with success status and message.
*/
const removeDiscordRole = async (userData, discordId, roleid, rolename) => {
export const removeDiscordRole = async (userData, discordId, roleid, rolename) => {
try {
const role = await discordRolesModel.isGroupRoleExists({ roleid, rolename });

Expand All @@ -35,5 +35,3 @@ const removeDiscordRole = async (userData, discordId, roleid, rolename) => {
return { success: false, message: error.message };
}
};

module.exports = { removeDiscordRole };

0 comments on commit fc320d5

Please sign in to comment.