[API] Drop unnecessary redirect

We `router.push` to the success screen. So, the redirect is unnecessary.
This commit is contained in:
Gary Tou 2024-10-25 21:21:32 -07:00
parent e853857ad1
commit 9062fcf7b3
No known key found for this signature in database
GPG key ID: 1587ABD3593755C3

View file

@ -62,7 +62,7 @@ export default async function handler(req, res) {
Accommodations: data.accommodations,
'HCB ID': r.id
})
res.writeHead(302, { Location: '/hcb/apply/success' }).end()
res.status(200).end();
})
.catch(error => {
console.error(error)