Skip to content

Commit

Permalink
fix: correctly convert hours in milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Dec 17, 2023
1 parent a4a6291 commit 0a951ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/lib/leo/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function getInactivityFilter<Prop extends string = "updatedAt">(

export function convertToJailTimeScale(total: number, scale: JailTimeScale) {
if (scale === JailTimeScale.HOURS) {
return total * 60 * 60 * 1000 * 24;
return total * 60 * 60 * 1000;
}

if (scale === JailTimeScale.MINUTES) {
Expand Down

0 comments on commit 0a951ee

Please sign in to comment.