Skip to content

Commit

Permalink
Update src/actions.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Guangcong Luo <[email protected]>
  • Loading branch information
MCGallaspy and Zarel authored Nov 12, 2024
1 parent 567da8b commit c8c149d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,8 @@ export const actions: {[k: string]: QueryHandler} = {
if (!params.ids) {
throw new ActionError("Invalid batch replay request, must provide ids");
}
const ids = params.ids.split(',').slice(0, 51);
const ids = params.ids.split(',');
if (ids.length > 51) throw new ActionError(`Limit 51 IDs (you have ${ids.length}).`);
return Replays.getBatch(ids);
},
// sent by ps server
Expand Down

0 comments on commit c8c149d

Please sign in to comment.