Skip to content

Commit

Permalink
Fix example in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
satococoa committed Dec 20, 2024
1 parent 21bd752 commit 515ec4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/api/cron/daily-sales-summary/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { timingSafeEqual } from "node:crypto";
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";

Expand All @@ -13,8 +13,8 @@ import { processDailySalesSummary } from "./process-daily-sales-summary";
* - timezone: handled as UTC
*
* @example
* curl http://localhost:3000/api/cron/daily-sales-summary
* curl http://localhost:3000/api/cron/daily-sales-summary?targetDate=2022-01-01
* curl -H "Authorization: Bearer [CRON_SECRET]" http://localhost:3000/api/cron/daily-sales-summary
* curl -H "Authorization: Bearer [CRON_SECRET]" http://localhost:3000/api/cron/daily-sales-summary?targetDate=2022-01-01
*/
export async function GET(req: NextRequest) {
if (!isValid(req)) {
Expand Down

0 comments on commit 515ec4e

Please sign in to comment.