summaryrefslogtreecommitdiff
path: root/src/server/api/service/github.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-05-03 18:58:54 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-05-03 18:58:54 +0900
commit12cd2709d6764986f01d1dbcb394f40c43a74c71 (patch)
tree6828868f93984839363773a0cdcf4284719e7b26 /src/server/api/service/github.ts
parentMerge branch 'develop' (diff)
parent11.10.0 (diff)
downloadmisskey-12cd2709d6764986f01d1dbcb394f40c43a74c71.tar.gz
misskey-12cd2709d6764986f01d1dbcb394f40c43a74c71.tar.bz2
misskey-12cd2709d6764986f01d1dbcb394f40c43a74c71.zip
Merge branch 'develop'
Diffstat (limited to 'src/server/api/service/github.ts')
-rw-r--r--src/server/api/service/github.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/server/api/service/github.ts b/src/server/api/service/github.ts
index 4f287406d1..de1e15f079 100644
--- a/src/server/api/service/github.ts
+++ b/src/server/api/service/github.ts
@@ -193,12 +193,8 @@ router.get('/gh/cb', async ctx => {
}
const link = await UserProfiles.createQueryBuilder()
- .where('github @> :github', {
- github: {
- id: id,
- },
- })
- .andWhere('userHost IS NULL')
+ .where('"githubId" = :id', { id: id })
+ .andWhere('"userHost" IS NULL')
.getOne();
if (link == null) {