From cdd1cdd5261216a25bc3bf06da086e9ac07a95c6 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 16 Jul 2024 20:22:16 -0600 Subject: [PATCH] Fix segment parameter again --- src/index.tsx | 8 ++++---- src/operations/video_upload.gql | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 378b0b5..4f0fbca 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1688,7 +1688,7 @@ export type GetHlsInitUploadLinkMutation = { export type SetSegmentDurationMutationVariables = Exact<{ videoId: Scalars["Int"]["input"]; - segmentId: Scalars["Int"]["input"]; + segmentIndex: Scalars["Int"]["input"]; duration: Scalars["Float"]["input"]; }>; @@ -3519,12 +3519,12 @@ export type GetHlsInitUploadLinkMutationOptions = Apollo.BaseMutationOptions< export const SetSegmentDurationDocument = gql` mutation SetSegmentDuration( $videoId: Int! - $segmentId: Int! + $segmentIndex: Int! $duration: Float! ) { setSegmentDuration( videoId: $videoId - segmentId: $segmentId + segmentIndex: $segmentIndex duration: $duration ) } @@ -3548,7 +3548,7 @@ export type SetSegmentDurationMutationFn = Apollo.MutationFunction< * const [setSegmentDurationMutation, { data, loading, error }] = useSetSegmentDurationMutation({ * variables: { * videoId: // value for 'videoId' - * segmentId: // value for 'segmentId' + * segmentIndex: // value for 'segmentIndex' * duration: // value for 'duration' * }, * }); diff --git a/src/operations/video_upload.gql b/src/operations/video_upload.gql index 1946ed5..d18d278 100644 --- a/src/operations/video_upload.gql +++ b/src/operations/video_upload.gql @@ -26,12 +26,12 @@ mutation GetHlsInitUploadLink($videoId: Int!) { mutation SetSegmentDuration( $videoId: Int! - $segmentId: Int! + $segmentIndex: Int! $duration: Float! ) { setSegmentDuration( videoId: $videoId - segmentId: $segmentId + segmentIndex: $segmentIndex duration: $duration ) }