From a0edd031fe8f8983a846e6deeaddf14a5074c8c0 Mon Sep 17 00:00:00 2001 From: Maximilian Weber Date: Wed, 20 Mar 2024 10:06:29 +0100 Subject: [PATCH] fix(app): personResponsible as optional in axios post --- src/server/routers/_app.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/routers/_app.ts b/src/server/routers/_app.ts index 0d7b323..eb9a0b2 100644 --- a/src/server/routers/_app.ts +++ b/src/server/routers/_app.ts @@ -280,7 +280,7 @@ export const appRouter = router({ .input( z.object({ proposalName: z.string(), - personResponsible: z.string(), + personResponsible: z.string().optional(), comment: z.string(), proposalId: z.string(), supervisorEmail: z.string().email(), @@ -289,6 +289,7 @@ export const appRouter = router({ }) ) .mutation(async ({ ctx, input }) => { + const res = await axios.post( process.env.PROPOSAL_FEEDBACK_URL as string, input,