Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove thumbnail generation on mobile app #292

Merged
merged 6 commits into from
Jul 3, 2022

Conversation

alextran1502
Copy link
Contributor

  • Remove thumbnail generation on mobile
  • Remove tconditions for missing thumbnail on the backend

Copy link
Contributor

@jbaez jbaez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think going forward we can add Job payloads as shared interfaces, this would make job processing type-safe 🙂.
If you want to do that starting from now, I put some comments below for how it would be.

fileSize,
hasThumbnail,
}: { asset: AssetEntity; fileName: string; fileSize: number; hasThumbnail: boolean } = job.data;
const { asset, fileName, fileSize }: { asset: AssetEntity; fileName: string; fileSize: number } = job.data;
Copy link
Contributor

@jbaez jbaez Jul 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to use the generic type in the job argument, and if we created the shared interface, here is were we would use it:

processUploadedVideo(job: Job<IAssetUploadedJob>) 

and then this just becomes:

const { asset, fileName, fileSize } = job.data;

if we not adding the shared interface now, then still using the Job generic would be a better approach (even if is a type/interface defined in this file for the time being)

@alextran1502 alextran1502 merged commit 76bf1c0 into main Jul 3, 2022
@alextran1502 alextran1502 deleted the dev/remove-thumbnail-generation-on-mobile branch July 3, 2022 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants