Skip to content

Commit

Permalink
fix: use PROPOSAL_FEEDBACK_URL in backend
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlaefli committed Oct 24, 2023
1 parent cb7ef98 commit 02768fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 5 additions & 12 deletions src/server/routers/_app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }) => {
Expand Down

0 comments on commit 02768fb

Please sign in to comment.