0
0

Merge pull request #1340 from akihikodaki/github

Fix GitHub bot user query
This commit is contained in:
syuilo 2018-03-30 14:10:23 +09:00 committed by GitHub
commit 953c81971a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {