Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed Jan 7, 2025
1 parent c72390a commit 8e8c4aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/polar-nextjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { CustomerPortal } from "@polar-sh/nextjs";

export const GET = CustomerPortal({
accessToken: process.env.POLAR_ACCESS_TOKEN,
getCustomerId: (req: NextRequest) => '', // Fuction to resolve a Polar Customer ID
getCustomerId: (req: NextRequest) => "", // Fuction to resolve a Polar Customer ID
server: "sandbox", // Use sandbox if you're testing Polar - omit the parameter or pass 'production' otherwise
});
```
Expand Down
2 changes: 1 addition & 1 deletion packages/polar-sveltekit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { CustomerPortal } from "@polar-sh/sveltekit";

export const GET = CustomerPortal({
accessToken: process.env.POLAR_ACCESS_TOKEN,
getCustomerId: (event) => '', // Fuction to resolve a Polar Customer ID
getCustomerId: (event) => "", // Fuction to resolve a Polar Customer ID
server: "sandbox", // Use sandbox if you're testing Polar - omit the parameter or pass 'production' otherwise
});
```
Expand Down
7 changes: 3 additions & 4 deletions packages/polar-sveltekit/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ export const CustomerPortal = ({
const customerId = await getCustomerId(event);

if (!customerId) {
return new Response(
JSON.stringify({ error: "customerId not defined" }),
{ status: 400 },
);
return new Response(JSON.stringify({ error: "customerId not defined" }), {
status: 400,
});
}

try {
Expand Down

0 comments on commit 8e8c4aa

Please sign in to comment.