Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(web-backend): refresh Google Drive upload session on retry
Richie McIlroyf585ff29b393
diff --git a/packages/web-backend/src/Storage/GoogleDrive.ts b/packages/web-backend/src/Storage/GoogleDrive.tsindex 2e4aded3c..e7e4446a5 100644--- a/packages/web-backend/src/Storage/GoogleDrive.ts+++ b/packages/web-backend/src/Storage/GoogleDrive.ts@@ -1009,6 +1009,23 @@ export const createGoogleDriveResumableUpload = (}),);}+ yield* repo.upsertObject({+ integrationId: input.integrationId,+ ownerId: input.ownerId,+ videoId: input.videoId,+ objectKey: input.key,+ providerObjectId: existing.value.providerObjectId,+ uploadSessionUrl: uploadUrl,+ uploadStatus: "pending",+ contentType,+ contentLength: input.contentLength ?? existing.value.contentLength,+ metadata: {+ ...(existing.value.metadata ?? {}),+ videoId: input.videoId ?? undefined,+ fileName: getDriveFileName(input.key),+ contentType,+ },+ });return uploadUrl;}