From ee3b4cb9f7420cfe83cb914f7e12e190a6a6b30e Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 22 Dec 2023 13:36:59 +0700 Subject: [PATCH] Experimental --- www/app/[domain]/transcripts/createTranscript.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/www/app/[domain]/transcripts/createTranscript.ts b/www/app/[domain]/transcripts/createTranscript.ts index 08eff7da..e8986761 100644 --- a/www/app/[domain]/transcripts/createTranscript.ts +++ b/www/app/[domain]/transcripts/createTranscript.ts @@ -26,13 +26,27 @@ const useCreateTranscript = (): UseTranscript => { console.debug( "POST - /v1/transcripts/ - Requesting new transcription creation", transcriptCreationDetails, + api ); + const aaa = async () => { + console.log("Calling API..."); + + await new Promise((res) => setTimeout(res, 500)); + + console.log("500 ms elapsed - calling api"); + + const test = await api.v1TranscriptsCreate(transcriptCreationDetails); + console.log(test); + }; + + aaa(); + api.v1TranscriptsCreate(transcriptCreationDetails) .then((transcript) => { + console.debug("New transcript created:", transcript); setTranscript(transcript); setLoading(false); - console.debug("New transcript created:", transcript); }) .catch((err) => { setError(