From 2a65550c5e15ca3916728c44b3a17be2835c5afc Mon Sep 17 00:00:00 2001 From: litc0de Date: Mon, 16 Dec 2024 00:12:38 +0100 Subject: [PATCH] fix stuff --- packages/backend/src/Survey.ts | 16 ++++++++-------- packages/backend/src/user.ts | 10 +++++----- packages/frontend/src/Pages/Questions.svelte | 4 +--- packages/frontend/src/Pages/Thanks.svelte | 4 ++-- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/packages/backend/src/Survey.ts b/packages/backend/src/Survey.ts index 1c85555..60c92f8 100644 --- a/packages/backend/src/Survey.ts +++ b/packages/backend/src/Survey.ts @@ -119,12 +119,12 @@ export const surveyRoutes = (client: edgedb.Client) => return { status: 200, message: "success" }; }, { body: "surveyPart2Params" }, - ) - .get("/all", async ({ surveyController }) => { - const surveys = await surveyController.getAll(); + ); +// .get("/all", async ({ surveyController }) => { +// const surveys = await surveyController.getAll(); - return { - success: true, - data: surveys, - }; - }); +// return { +// success: true, +// data: surveys, +// }; +// }); diff --git a/packages/backend/src/user.ts b/packages/backend/src/user.ts index aeda404..406af60 100644 --- a/packages/backend/src/user.ts +++ b/packages/backend/src/user.ts @@ -141,8 +141,8 @@ export const userRoutes = (client: edgedb.Client) => cookie: "optionalSession", }, ) - .use(getUser) - .get("/profile", ({ userId }) => ({ - success: true, - userId, - })); + .use(getUser); +// .get("/profile", ({ userId }) => ({ +// success: true, +// userId, +// })); diff --git a/packages/frontend/src/Pages/Questions.svelte b/packages/frontend/src/Pages/Questions.svelte index af5b29a..88d23d3 100644 --- a/packages/frontend/src/Pages/Questions.svelte +++ b/packages/frontend/src/Pages/Questions.svelte @@ -195,9 +195,7 @@