Skip to content

Commit

Permalink
Add Models Path
Browse files Browse the repository at this point in the history
  • Loading branch information
zachHarpaz committed Nov 19, 2024
1 parent 764c24b commit 0c65917
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/user/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ def create_or_update_user_profile(sender, instance, created, **kwargs):
object exists for that User, it will create one
"""
Profile.objects.get_or_create(user=instance)
NotificationService.objects.get(name="COURSES").enabled_users.add(instance)
if courses_service := NotificationService.objects.filter(name="COURSES").first():
courses_service.enabled_users.add(instance)

Check warning on line 52 in backend/user/models.py

View check run for this annotation

Codecov / codecov/patch

backend/user/models.py#L52

Added line #L52 was not covered by tests

0 comments on commit 0c65917

Please sign in to comment.