mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
Experimental
This commit is contained in:
@@ -26,13 +26,27 @@ const useCreateTranscript = (): UseTranscript => {
|
|||||||
console.debug(
|
console.debug(
|
||||||
"POST - /v1/transcripts/ - Requesting new transcription creation",
|
"POST - /v1/transcripts/ - Requesting new transcription creation",
|
||||||
transcriptCreationDetails,
|
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)
|
api.v1TranscriptsCreate(transcriptCreationDetails)
|
||||||
.then((transcript) => {
|
.then((transcript) => {
|
||||||
|
console.debug("New transcript created:", transcript);
|
||||||
setTranscript(transcript);
|
setTranscript(transcript);
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
console.debug("New transcript created:", transcript);
|
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
setError(
|
setError(
|
||||||
|
|||||||
Reference in New Issue
Block a user