Skip to content

Commit 7bde489

Browse files
committed
modify stepfunction
1 parent 1e756fe commit 7bde489

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/CreateClassWizard.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ export function CreateClassWizard({
146146
const baseFileName = uploadedFileName.replace(/\.[^/.]+$/, '');
147147
const languages = ['english']; // Default to English only
148148

149-
const { data, errors } = await client.mutations.startVideoProcessing({
149+
const { data, errors } = await client.mutations.stepFunction({
150+
action: "START",
150151
videoKey: uploadedFileName,
151152
bucketName: BUCKET_NAME,
152153
transcriptionKey: `${baseFileName}_transcription`,
@@ -183,7 +184,8 @@ export function CreateClassWizard({
183184

184185
const pollInterval = setInterval(async () => {
185186
try {
186-
const { data, errors } = await client.queries.checkExecutionStatus({
187+
const { data, errors } = await client.mutations.stepFunction({
188+
action: "STATUS",
187189
executionArn: arn
188190
});
189191

0 commit comments

Comments
 (0)