Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
satococoa committed Dec 20, 2024
1 parent 62d86fe commit 21bd752
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/api/cron/daily-sales-summary/route.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import { timingSafeEqual } from "node:crypto";
import { captureException } from "@sentry/nextjs";
import type { NextRequest } from "next/server";
import invariant from "tiny-invariant";
import { processDailySalesSummary } from "./process-daily-sales-summary";

/**
* Cron job handler for daily sales summary.
*
Expand All @@ -10,12 +16,6 @@
* curl http://localhost:3000/api/cron/daily-sales-summary
* curl http://localhost:3000/api/cron/daily-sales-summary?targetDate=2022-01-01
*/
import { captureException } from "@sentry/nextjs";
import type { NextRequest } from "next/server";
import { timingSafeEqual } from "node:crypto";
import invariant from "tiny-invariant";
import { processDailySalesSummary } from "./process-daily-sales-summary";

export async function GET(req: NextRequest) {
if (!isValid(req)) {
return new Response("Unauthorized", {
Expand Down

0 comments on commit 21bd752

Please sign in to comment.