✏️ Fix: [#69] NotificationType 초대 변수 상세화(프로젝트 초대)

This commit is contained in:
sm4640
2025-06-25 23:01:22 +09:00
parent 9377506d8b
commit 4b94cb70ed
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ class InviteCodeUseType(models.TextChoices):
HACKATHON = 'h', 'h'
class NotificationType(models.TextChoices):
INVITE = '초대', '초대'
PROJECT_INVITE = '프로젝트 초대', '프로젝트 초대'
class InvitationStatus(models.TextChoices):
PENDING = '대기', '대기'

View File

@@ -50,7 +50,7 @@ class ProjectTeamManageAPIView(APIView):
new_member = get_object_or_404(User, nickname=nickname)
if ProjectTeamList.objects.filter(project=project, user=new_member).exists():
return Response({"message": "already team member"}, status=status.HTTP_400_BAD_REQUEST)
new_notification = NotifiationService.create_notification(user=new_member, note_type=NotificationType.INVITE)
new_notification = NotifiationService.create_notification(user=new_member, note_type=NotificationType.PROJECT_INVITE)
ProjectInvitationService.create_project_invitation(
project=project,
from_user=user,