Skip to content

Commit a30932e

Browse files
Fix incorrect sub function name
1 parent a147344 commit a30932e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/app/api/_router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
import invariant from "@/lib/invariant";
2424
import { dispatchJobForJobrunner } from "@/lib/jobs";
2525
import { expectNever } from "ts-expect";
26-
import { subtract } from "date-fns";
26+
import { sub } from "date-fns";
2727

2828
const ExtendedMediaModelWithDownloadURL = ExtendedMediaModel.extend({
2929
continuityItems: z.array(ContinuityItemSchema),
@@ -75,7 +75,7 @@ export const appRouter = router({
7575
return db.showWithDuration.findMany({
7676
where: {
7777
end: {
78-
lte: subtract(new Date(), { hours: input?.gracePeriodHours ?? 0 }),
78+
lte: sub(new Date(), { hours: input?.gracePeriodHours ?? 0 }),
7979
},
8080
},
8181
});

0 commit comments

Comments
 (0)