Skip to content

Commit

Permalink
Put hack in place for StreamETH to do 20 concurrent clips instead of 5 (
Browse files Browse the repository at this point in the history
  • Loading branch information
thomshutt authored Nov 11, 2024
1 parent a5cbf75 commit 2bb3b0a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/api/src/controllers/clip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,13 @@ app.post(
5,
);

if (processingClips.length >= MAX_PROCESSING_CLIPS && !clippingUser.admin) {
// Hack to let StreamETH have a higher clipping limit without having to do the work to put this on the User object
let maxProcessingClips = MAX_PROCESSING_CLIPS;
if (req.user.id == "05f04681-b600-4a9b-81ea-1f56e7871f04") {
maxProcessingClips = 20;
}

if (processingClips.length >= maxProcessingClips && !clippingUser.admin) {
throw new ForbiddenError("Too many clips are being processed.");
}

Expand Down

0 comments on commit 2bb3b0a

Please sign in to comment.