🐛 Fix: [#32] portfolio 대표 설정 save() 추가

This commit is contained in:
sm4640
2025-04-28 21:55:02 +09:00
parent 72f948cfb5
commit 344bbb26bd

View File

@@ -57,6 +57,7 @@ class PortfolioSetRepresentAPIView(APIView):
if before_represent := Portfolio.objects.filter(owner=user, is_represent=True).first():
before_represent.is_represent = False
portfolio.is_represent = True
portfolio.save()
return Response({"message": "change represent success"}, status=status.HTTP_200_OK)