We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a147344 commit a30932eCopy full SHA for a30932e
server/app/api/_router.ts
@@ -23,7 +23,7 @@ import {
23
import invariant from "@/lib/invariant";
24
import { dispatchJobForJobrunner } from "@/lib/jobs";
25
import { expectNever } from "ts-expect";
26
-import { subtract } from "date-fns";
+import { sub } from "date-fns";
27
28
const ExtendedMediaModelWithDownloadURL = ExtendedMediaModel.extend({
29
continuityItems: z.array(ContinuityItemSchema),
@@ -75,7 +75,7 @@ export const appRouter = router({
75
return db.showWithDuration.findMany({
76
where: {
77
end: {
78
- lte: subtract(new Date(), { hours: input?.gracePeriodHours ?? 0 }),
+ lte: sub(new Date(), { hours: input?.gracePeriodHours ?? 0 }),
79
},
80
81
});
0 commit comments