Skip to content

Commit

Permalink
Comment error in receiver for cohort_user_created
Browse files Browse the repository at this point in the history
  • Loading branch information
tommygonzaleza authored Feb 13, 2025
1 parent 280d93b commit 2e95f47
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions breathecode/admissions/receivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ async def new_cohort_user(sender: Type[CohortUser], instance: CohortUser, **kwar
logger.info("Signal for created cohort user: " + str(instance.id))
await join_to_micro_cohorts(instance)

await authenticate_actions.send_webhook(
"rigobot",
"cohort_user.created",
user=instance.user,
data={
"user": {
"id": instance.user.id,
"email": instance.user.email,
"first_name": instance.user.first_name,
"last_name": instance.user.last_name,
},
},
)
# await authenticate_actions.send_webhook(
# "rigobot",
# "cohort_user.created",
# user=instance.user,
# data={
# "user": {
# "id": instance.user.id,
# "email": instance.user.email,
# "first_name": instance.user.first_name,
# "last_name": instance.user.last_name,
# },
# },
# )

tasks.build_profile_academy.delay(instance.cohort.academy.id, instance.user.id, "student")

Expand Down

0 comments on commit 2e95f47

Please sign in to comment.