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:
co-authored by
Peer Richelsen
parent
0b9133c2cf
commit
96bf81ce8a
@@ -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}`}>
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user