Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Nov 18, 2024
1 parent 87233e3 commit 96b6594
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/backend/src/api/v1/auth/github.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import sql from "@/src/utils/db";
import { sendSlackMessage } from "@/src/utils/notifications";
import { Context } from "node:vm";
import { signJWT } from "./utils";
import Router from "koa-router";
import { z } from "zod";
import Context from "@/src/utils/koa";

const github = new Router({
prefix: "/github",
Expand All @@ -22,8 +22,6 @@ async function getGithubUserInfo(accessToken: string) {
},
});

console.log(userResponse, userResponse.ok);

if (!userResponse.ok || !emailResponse.ok) {
throw new Error(`Github API error: ${emailResponse.statusText}`);
}
Expand Down

0 comments on commit 96b6594

Please sign in to comment.