chore: Rename Authentication -> IntegrationAuthentication (#2091)

This commit is contained in:
Tom Moor
2021-04-27 18:42:45 -07:00
committed by GitHub
parent 829cc14d36
commit b89f4c36f4
7 changed files with 23 additions and 18 deletions

View File

@ -5,13 +5,13 @@ import { AuthenticationError, InvalidRequestError } from "../errors";
import {
UserAuthentication,
AuthenticationProvider,
Authentication,
Document,
User,
Team,
Collection,
SearchQuery,
Integration,
IntegrationAuthentication,
} from "../models";
import { presentSlackAttachment } from "../presenters";
import * as Slack from "../slack";
@ -38,7 +38,7 @@ router.post("hooks.unfurl", async (ctx) => {
});
if (!user) return;
const auth = await Authentication.findOne({
const auth = await IntegrationAuthentication.findOne({
where: { service: "slack", teamId: user.teamId },
});
if (!auth) return;