From dc53dfa555435808d643bde1f11d0901de3b813d Mon Sep 17 00:00:00 2001 From: Uichan Lee Date: Mon, 6 May 2024 01:03:48 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20userHandlers=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit users에서 relationshipStatus를 가져오던 followInfo를 relationshipStatus에서 가져오도록 수정했습니다. --- src/app/mocks/handler/user.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/mocks/handler/user.ts b/src/app/mocks/handler/user.ts index 968e643..c4c463d 100644 --- a/src/app/mocks/handler/user.ts +++ b/src/app/mocks/handler/user.ts @@ -7,6 +7,7 @@ import { createHttpErrorResponse, } from '../dir/response'; import { reports } from '../consts/report'; +import { relationshipStatus } from '../consts/relationshipStatus'; export const userHandlers = [ // 1️⃣ 팔로우 요청 @@ -18,7 +19,7 @@ export const userHandlers = [ } const formattedUserId = Number(user_id); - const followInfo = users[formattedUserId].relationshipStatus; + const followInfo = relationshipStatus[formattedUserId].relationshipStatus; if (followInfo !== 'none') { return createHttpErrorResponse('4220'); @@ -35,7 +36,7 @@ export const userHandlers = [ } const formattedUserId = Number(user_id); - const followInfo = users[formattedUserId].relationshipStatus; + const followInfo = relationshipStatus[formattedUserId].relationshipStatus; if (followInfo === 'self' || followInfo === 'none') { return createHttpErrorResponse('4220'); @@ -52,7 +53,7 @@ export const userHandlers = [ } const formattedUserId = Number(user_id); - const followInfo = users[formattedUserId].relationshipStatus; + const followInfo = relationshipStatus[formattedUserId].relationshipStatus; if (!followInfo) { return createHttpErrorResponse('4040');