Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set video processing key for certain file types
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 491d484 commit 95367be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions functions/api/reports/submit.ts
Expand Up @@ -151,6 +151,12 @@ export async function onRequestPost(context: RequestContext) {
context.data.current_user.id,
{ expirationTtl: 3600 }
);

if (["mkv", "mov", "wmv"].includes(fileExt.toLowerCase()))
await context.env.DATA.put(`videoprocessing_${fileKey}.${fileExt}`, "1", {
expirationTtl: 3600,
});

await context.env.DATA.put(
`report_${reportId}`,
JSON.stringify({
Expand Down

0 comments on commit 95367be

Please sign in to comment.