diff --git a/.env.development b/.env.development index 46551aa..00d5156 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ NEXT_PUBLIC_APP_URL=localhost:3000 NEXT_PUBLIC_FORMS_URL_PUBLISH="https://forms.office.com/Pages/ResponsePage.aspx?id=2zjkx2LkIkypCsNYsWmAs1QgPDYXFIJFoTn3sHbg3YFUOFBGVEI2SlY2WEVQRUc0VUFIRUdKNDE5QS4u&embed=true" NEXT_PUBLIC_FORMS_URL_SUBMIT="https://forms.office.com/Pages/ResponsePage.aspx?id=2zjkx2LkIkypCsNYsWmAs1QgPDYXFIJFoTn3sHbg3YFURUhYTFNWUUdTT0lVUFRCVkJUVEsyWTdBMS4u&embed=true" NEXT_PUBLIC_BLOBSERVICECLIENT_URL="https://thesisplatformdev.blob.core.windows.net/uploads?" -NEXT_PUBLIC_APPLICATION_URL="https://prod-16.switzerlandnorth.logic.azure.com:443/workflows/59277f26083740e5bff291f9b93ae017/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=YoKvNPy9vcURljhJzSxEEaWVIO1J_PJYJJ0j38xfGOw" -NEXT_PUBLIC_PROPOSAL_FEEDBACK_URL="https://prod-14.switzerlandnorth.logic.azure.com:443/workflows/df4d7fd584834de1bcac66150f2d7e15/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=zVrizkBYfyIikgpVkQmNAM2IOJ8eHfJpvIvr7tdC3hc" +APPLICATION_URL="https://prod-16.switzerlandnorth.logic.azure.com:443/workflows/59277f26083740e5bff291f9b93ae017/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=YoKvNPy9vcURljhJzSxEEaWVIO1J_PJYJJ0j38xfGOw" +PROPOSAL_FEEDBACK_URL="https://prod-14.switzerlandnorth.logic.azure.com:443/workflows/df4d7fd584834de1bcac66150f2d7e15/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=zVrizkBYfyIikgpVkQmNAM2IOJ8eHfJpvIvr7tdC3hc" NEXT_PUBLIC_CONTAINER_NAME=uploads NEXT_PUBLIC_AZURE_STORAGE_ACCOUNT_NAME=thesisplatformdev diff --git a/src/server/routers/_app.ts b/src/server/routers/_app.ts index 4b0e780..9bb2cd5 100644 --- a/src/server/routers/_app.ts +++ b/src/server/routers/_app.ts @@ -121,12 +121,10 @@ export const appRouter = router({ }) ) .mutation(async ({ ctx, input }) => { - await axios.post(process.env.APPLICATION_URL as string, input, { - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, - }) + const res = await axios.post( + process.env.PROPOSAL_FEEDBACK_URL as string, + input + ) }), submitProposalApplication: publicProcedure @@ -144,12 +142,7 @@ export const appRouter = router({ }) ) .mutation(async ({ ctx, input }) => { - await axios.post(process.env.APPLICATION_URL as string, input, { - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, - }) + const res = await axios.post(process.env.APPLICATION_URL as string, input) }), // supervisors: optionalAuthedProcedure.query(async ({ ctx }) => {