From 5bf115400bedb0c33feb847a65acbc5d19cf134b Mon Sep 17 00:00:00 2001 From: jisu Date: Sat, 22 Jun 2024 00:48:28 +0900 Subject: [PATCH] refact: add memberId condition in isRequesterJoinedFamily logic --- .../java/com/oing/controller/FamilyInviteViewController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gateway/src/main/java/com/oing/controller/FamilyInviteViewController.java b/gateway/src/main/java/com/oing/controller/FamilyInviteViewController.java index c4fb4ee8..954558f5 100644 --- a/gateway/src/main/java/com/oing/controller/FamilyInviteViewController.java +++ b/gateway/src/main/java/com/oing/controller/FamilyInviteViewController.java @@ -23,13 +23,12 @@ public class FamilyInviteViewController implements FamilyInviteViewApi { private final FamilyBridge familyBridge; private final PostBridge postBridge; private final MemberController memberController; - private final MeApi meApi; @Override public FamilyInviteDeepLinkResponse getFamilyInviteLinkDetails(String linkId, String loginMemberId) { boolean isRequesterJoinedFamily = true; MemberResponse me = memberController.getMemberNullable(loginMemberId); - if (me.familyId() == null) { + if (me.familyId() == null || me.memberId() == null) { isRequesterJoinedFamily = false; }