Skip to content

Commit

Permalink
fix: field is not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 3, 2023
1 parent e44f46d commit ee5ea7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function middleware(req: NextRequest, context: NextFetchEvent) {
}
}
// TODO: unique to a user (userid, email etc) instead of IP
const identifier = req.ip ?? "127.0.0.6";
const identifier = req.ip ?? "127.0.0.7";
const { success, remaining } = await ratelimit.limit(identifier);
console.log(`======== ip ${identifier}, remaining: ${remaining} ========`);
if (!apiKey && !success) {
Expand Down
2 changes: 1 addition & 1 deletion utils/3rd/lemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export async function activeLicenseKey(licenseKey: string, bvId?: string) {
}
);
const result = await response.json();
return result.actived;
return result.activated;
}

1 comment on commit ee5ea7e

@vercel
Copy link

@vercel vercel bot commented on ee5ea7e Mar 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.