From d86bbefe22575f2d0b3cac51a5aaf551d6a8703b Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 7 Jun 2018 04:33:39 +0900 Subject: [PATCH] Fix --- cli/suspend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/suspend.js b/cli/suspend.js index 077685d50..877b37dbc 100644 --- a/cli/suspend.js +++ b/cli/suspend.js @@ -7,7 +7,7 @@ const user = args[0]; const q = user.startsWith('@') ? { username: user.split('@')[1], - host: user.split('@')[2] + host: user.split('@')[2] || null } : { _id: new mongo.ObjectID(user) }; console.log(`Suspending ${user}...`);