summaryrefslogtreecommitdiff
path: root/src/server/api/service/github.ts
diff options
context:
space:
mode:
authorAkihiko Odaki <nekomanma@pixiv.co.jp>2018-03-30 13:00:05 +0900
committerAkihiko Odaki <nekomanma@pixiv.co.jp>2018-03-30 13:00:05 +0900
commitf1140ad300b4a6a97e87b4378c03ce26f36c5277 (patch)
treef522473c2ea350889259638ab9bec97e1a726866 /src/server/api/service/github.ts
parentUpdate show.ts (diff)
downloadsharkey-f1140ad300b4a6a97e87b4378c03ce26f36c5277.tar.gz
sharkey-f1140ad300b4a6a97e87b4378c03ce26f36c5277.tar.bz2
sharkey-f1140ad300b4a6a97e87b4378c03ce26f36c5277.zip
Fix GitHub bot user query
Diffstat (limited to 'src/server/api/service/github.ts')
-rw-r--r--src/server/api/service/github.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/api/service/github.ts b/src/server/api/service/github.ts
index 6eacdb7472..a2359cfb6f 100644
--- a/src/server/api/service/github.ts
+++ b/src/server/api/service/github.ts
@@ -9,7 +9,8 @@ module.exports = async (app: express.Application) => {
if (config.github_bot == null) return;
const bot = await User.findOne({
- usernameLower: config.github_bot.username.toLowerCase()
+ usernameLower: config.github_bot.username.toLowerCase(),
+ host: null
});
if (bot == null) {