diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-07 04:33:39 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-07 04:33:39 +0900 |
| commit | 2053a041e5167480dfa7c688632bf4b88339f66a (patch) | |
| tree | 1ab81583df169f224759d26b896e6ec23bcba103 /cli | |
| parent | :v: (diff) | |
| download | sharkey-2053a041e5167480dfa7c688632bf4b88339f66a.tar.gz sharkey-2053a041e5167480dfa7c688632bf4b88339f66a.tar.bz2 sharkey-2053a041e5167480dfa7c688632bf4b88339f66a.zip | |
Fix
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/suspend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/suspend.js b/cli/suspend.js index 077685d507..877b37dbca 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}...`); |