diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-03-30 14:10:23 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-30 14:10:23 +0900 |
| commit | 953c81971a8a3b95c45a9ebd137878c0da7d0189 (patch) | |
| tree | 544f8bea3dcdccc992e0e16d0c72b8e39b6a3c46 /src/server/api | |
| parent | cw (diff) | |
| parent | Fix GitHub bot user query (diff) | |
| download | sharkey-953c81971a8a3b95c45a9ebd137878c0da7d0189.tar.gz sharkey-953c81971a8a3b95c45a9ebd137878c0da7d0189.tar.bz2 sharkey-953c81971a8a3b95c45a9ebd137878c0da7d0189.zip | |
Merge pull request #1340 from akihikodaki/github
Fix GitHub bot user query
Diffstat (limited to 'src/server/api')
| -rw-r--r-- | src/server/api/service/github.ts | 3 |
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) { |