Skip to content

Commit

Permalink
chore: convert to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Nov 3, 2024
1 parent 6331b4f commit be997d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export default function buildBaseApi(server: Server) {
if (query.nKatu) params.nKatu = +query.nKatu;
if (query.mods) params.mods = +query.mods;
if (query.acc) params.accuracy = +query.acc;
if (query.lazer) params.lazer = query.lazer ?? true;
if (query.lazer) params.lazer = Boolean(query.lazer) ?? true;

const calculate = new rosu.Performance(params).calculate(beatmap);
sendJson(res, calculate);
Expand Down

0 comments on commit be997d4

Please sign in to comment.