Additional assorted layering cleanups

This commit is contained in:
Tau
2019-11-06 17:29:07 -05:00
parent 6a4ac795b2
commit 82bd9ad7bb
22 changed files with 14 additions and 15 deletions
+2 -6
View File
@@ -40,18 +40,14 @@ import { updateTeamMember } from "./updateTeamMember";
import { updateTeamPoints } from "./updateTeamPoints";
import { updateUiReport } from "./updateUiReport";
import { updateUserLog } from "./updateUserLog";
import { Repositories } from "../repo";
import { Request } from "../request";
import { Response } from "../response";
import { Repositories } from "../repo";
import { Transaction } from "../../sql";
import { SqlRepositories } from "../db";
export async function dispatch(
txn: Transaction,
w: Repositories,
req: Request
): Promise<Response> {
const w = new SqlRepositories(txn);
switch (req.type) {
case "check_team_name_req":
return checkTeamName(w, req);