service -> serviceId

This commit is contained in:
Tom Moor
2018-06-01 15:13:05 -04:00
parent b7b5bac5c3
commit 2337b9df7f
12 changed files with 23 additions and 14 deletions

View File

@ -20,7 +20,7 @@ router.post('hooks.unfurl', async ctx => {
if (!user) return;
const auth = await Authentication.find({
where: { serviceId: 'slack', teamId: user.teamId },
where: { service: 'slack', teamId: user.teamId },
});
if (!auth) return;