Skip to content

Commit

Permalink
fix(app): personResponsible as optional in axios post
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Weber committed Mar 20, 2024
1 parent eebf806 commit a0edd03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/routers/_app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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,
Expand Down

0 comments on commit a0edd03

Please sign in to comment.