diff --git a/internal/uploads/intake.go b/internal/uploads/intake.go index d33cba5..56249b7 100644 --- a/internal/uploads/intake.go +++ b/internal/uploads/intake.go @@ -23,7 +23,7 @@ type Prober interface { // Store is the slice of the private transcript store the intake needs. type Store interface { - CreateUpload(ctx context.Context, userID, title string) (string, error) + CreateUpload(ctx context.Context, userID, title string, hadVideo bool) (string, error) FailUpload(ctx context.Context, userID, id string, kind domain.UploadErrorKind) error } @@ -99,7 +99,7 @@ func (in *Intake) Accept(ctx context.Context, userID, title string, src io.Reade return "", err } - id, err := in.store.CreateUpload(ctx, userID, title) + id, err := in.store.CreateUpload(ctx, userID, title, probe.HasVideo) if err != nil { return "", fmt.Errorf("uploads: create: %w", err) }