fix: return 200 status code (#15134)

* fix: return 200 status code

* chore: undo padding in transcribe

---------

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
This commit is contained in:
Udit Takkar
2024-05-21 07:18:00 +00:00
committed by GitHub
co-authored by Peer Richelsen
parent 0b9133c2cf
commit 96bf81ce8a
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ export const CalAiTranscribe = () => {
textShadow: "0 0 20px black, 0 0 20px black, 0 0 20px black",
}}
ref={transcriptRef}
className="max-h-full overflow-x-hidden overflow-y-scroll p-8 text-center text-white">
className="max-h-full overflow-x-hidden overflow-y-scroll p-2 text-center text-white">
{transcript
? transcript.split("\n").map((line, i) => (
<Fragment key={`transcript-${i}`}>
+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({