fix: return 200 status code (#15134)

* fix: return 200 status code

* chore: undo padding in transcribe

---------

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Udit TakkarandPeer Richelsen authored and GitHub committed 2024-05-21 07:18:00 +00:00
1 parent 0b9133c2cf
commit 96bf81ce8a
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -144,12 +144,14 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
if (!bookingReference || !bookingReference.bookingId) {
log.error(
"bookingReference:",
"bookingReference not found error:",
safeStringify({
bookingReference,
room_name,
recording_id,
})
);
return res.status(404).send({ message: "Booking reference not found" });
return res.status(200).send({ message: "Booking reference not found" });
}
const booking = await prisma.booking.findUniqueOrThrow({