chore: Typescript database models (#2886)

closes #2798
This commit is contained in:
Tom Moor
2022-01-06 18:24:28 -08:00
committed by GitHub
parent d3cbf250e6
commit b20a341f0c
207 changed files with 5624 additions and 5315 deletions

View File

@@ -1,3 +1,4 @@
import invariant from "invariant";
import Router from "koa-router";
import { escapeRegExp } from "lodash";
import { AuthenticationError, InvalidRequestError } from "@server/errors";
@@ -93,6 +94,8 @@ router.post("hooks.interactive", async (ctx) => {
}
const team = await Team.findByPk(document.teamId);
invariant(team, "team not found");
// respond with a public message that will be posted in the original channel
ctx.body = {
response_type: "in_channel",