From a9a763f8c48bb6be4707a25ff690e1ab274dba82 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Sat, 21 Jan 2017 21:12:12 +0900
Subject: [PATCH] [API] Fix bug

---
 src/api/service/twitter.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/service/twitter.ts b/src/api/service/twitter.ts
index 4d4aad498f..eb3531d86f 100644
--- a/src/api/service/twitter.ts
+++ b/src/api/service/twitter.ts
@@ -14,8 +14,8 @@ module.exports = (app: express.Application) => {
 		const user = await User.findOneAndUpdate({
 			token: res.locals.user
 		}, {
-			$unset: {
-				twitter: ''
+			$set: {
+				twitter: null
 			}
 		});