From 761ae807dbc99ebf7b7bee9bad194217c5986c9b Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Sun, 3 Jun 2018 19:53:57 +0900
Subject: [PATCH] Fix bug

---
 src/server/api/endpoints/following/create.ts | 2 +-
 src/server/api/endpoints/following/delete.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/server/api/endpoints/following/create.ts b/src/server/api/endpoints/following/create.ts
index 48205232e6..b9610658d1 100644
--- a/src/server/api/endpoints/following/create.ts
+++ b/src/server/api/endpoints/following/create.ts
@@ -49,5 +49,5 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
 	create(follower, followee);
 
 	// Send response
-	res(await pack(followee, user));
+	res(await pack(followee._id, user));
 });
diff --git a/src/server/api/endpoints/following/delete.ts b/src/server/api/endpoints/following/delete.ts
index f4030c247a..4fcdaf5a82 100644
--- a/src/server/api/endpoints/following/delete.ts
+++ b/src/server/api/endpoints/following/delete.ts
@@ -49,5 +49,5 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
 	deleteFollowing(follower, followee);
 
 	// Send response
-	res(await pack(followee, user));
+	res(await pack(followee._id, user));
 });