Skip to content

Commit

Permalink
feat: all roles land on correct page + paras can see their tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
thomhickey committed Oct 16, 2024
1 parent 11dc2fb commit 5258bc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/backend/routers/para.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { z } from "zod";
import { hasCaseManager, router } from "../trpc";
import { hasCaseManager, hasPara, router } from "../trpc";
import { createPara } from "../lib/db_helpers/case_manager";

export const para = router({
Expand Down Expand Up @@ -61,7 +61,7 @@ export const para = router({
// TODO elsewhere: add "email_verified_at" timestamp when para first signs in with their email address (entered into db by cm)
}),

getMyTasks: hasCaseManager.query(async (req) => {
getMyTasks: hasPara.query(async (req) => {
const { userId } = req.ctx.auth;

const result = await req.ctx.db
Expand Down
2 changes: 1 addition & 1 deletion src/pages/signInPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const SignInPage = () => {
className={$button.default}
onClick={() =>
signIn("google", {
callbackUrl: "/students",
callbackUrl: "/",
})
}
>
Expand Down

0 comments on commit 5258bc4

Please sign in to comment.