Skip to content

Commit

Permalink
Update where admins come from
Browse files Browse the repository at this point in the history
  • Loading branch information
stefdworschak committed Oct 11, 2024
1 parent a6d3613 commit 927a625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hackathon/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def create_new_hackathon_slack_channel(hackathon_id, channel_name):
logger.info(f"Channel with id {channel} created.")

# Add admins to channel for administration purposes
users = [admin.username for admin in slack_site_settings.slack_admins.all()]
users = [admin.username for admin in hackathon.channel_admins.all()]
# First need to add Slack Bot to then add users to channel
response = admin_client.invite_users_to_slack_channel(
users=settings.SLACK_BOT_ID,
Expand Down

0 comments on commit 927a625

Please sign in to comment.