Merge pull request 'Move to segment index' (#115) from ivan/move-to-segment-index into master

Reviewed-on: railbird/railbird-mobile#115
This commit is contained in:
Ivan Malison 2024-02-14 09:59:27 -07:00
commit 8efbd676ce
3 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@
"graphql": "^16.8.1",
"jest": "^29.2.1",
"jest-expo": "~49.0.0",
"railbird-gql": "git+https://dev.railbird.ai/railbird/railbird-gql.git#838304efdd49a093bd8f9cea6cd6ef9e306d888a",
"railbird-gql": "git+https://dev.railbird.ai/railbird/railbird-gql.git#master",
"react": "18.2.0",
"react-native": "0.72.6",
"react-native-dotenv": "^3.4.9",

View File

@ -99,7 +99,7 @@ class StreamUploadManager<TCacheShape> {
console.log(`Requesting upload link for chunk ${chunkId}`);
const result = await this.client.mutate({
mutation: gql.GetUploadLinkDocument,
variables: { videoId: this.videoId, chunkIndex: chunkId },
variables: { videoId: this.videoId, segmentIndex: chunkId },
});
this.prefetchedUploadLinks[chunkId] = result.data.getUploadLink.uploadUrl;
return result.data.getUploadLink.uploadUrl;

View File

@ -9798,9 +9798,9 @@ queue@6.0.2:
dependencies:
inherits "~2.0.3"
"railbird-gql@git+https://dev.railbird.ai/railbird/railbird-gql.git#838304efdd49a093bd8f9cea6cd6ef9e306d888a":
"railbird-gql@git+https://dev.railbird.ai/railbird/railbird-gql.git#master":
version "1.0.0"
resolved "git+https://dev.railbird.ai/railbird/railbird-gql.git#838304efdd49a093bd8f9cea6cd6ef9e306d888a"
resolved "git+https://dev.railbird.ai/railbird/railbird-gql.git#204e289627b08a96b947b6f23ed4a843d9e8abff"
dependencies:
"@apollo/client" "^3.9.2"
"@graphql-codegen/cli" "^5.0.0"