Skip to content

Commit 77127a8

Browse files
committed
Remove premature deletion of video uploads
1 parent b8afba4 commit 77127a8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/web-backend/src/Videos/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,6 @@ export class Videos extends Effect.Service<Videos>()("Videos", {
342342
yield* db.use((db) =>
343343
db.transaction(async (tx) => {
344344
if (record.upload) {
345-
if (uploaded === total && record.upload.mode !== "multipart") {
346-
await tx
347-
.delete(Db.videoUploads)
348-
.where(Dz.eq(Db.videoUploads.videoId, videoId));
349-
return;
350-
}
351-
352345
await tx
353346
.update(Db.videoUploads)
354347
.set({

0 commit comments

Comments
 (0)