unbanUser = async (req, res) => {
  try {
    const { id, name } = req.params;

    const community = await Community.findOneAndUpdate(
      {
        name,
      },
      {
        $pull: {
          bannedUsers: id,
        },
      },
      {
        new: true,
      }
    );

    res.status(200).json(community);
  } catch (error) {
    res.status(500).json({
      message: "Error unbanning user from community",
    });
  }
}
@route POST /communities/:name/unban/:id
@param {string} req.params.id - The ID of the user to unban.
@param {string} req.params.name - The name of the community to unban the user from.