Skip to content

Commit

Permalink
TSC
Browse files Browse the repository at this point in the history
  • Loading branch information
chadmmills committed Nov 28, 2023
1 parent 722b6ac commit 5749850
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/api/routes/api/sessions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { z } from "zod";
import type { ApiHandlerArgs, ApiHandlerResponse } from "api/index.ts";

export function post({ payload }: ApiHandlerArgs): ApiHandlerResponse {
let body = payloadParser(payload);
let session = AuthSession.create(body);
// let body = payloadParser(payload);
// let session = AuthSession.create(body);

if (session.ok) {
throw new Response("", { status: 404 });
}
// if (session.ok) {
// throw new Response("", { status: 404 });
// }

return new Response(JSON.stringify({}), {
headers: { "content-type": "application/json" },
Expand Down

0 comments on commit 5749850

Please sign in to comment.