Skip to content

Commit

Permalink
solves User is rate-limited by GitHub (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swastik19Nit authored Jun 26, 2024
1 parent 9363631 commit b53d513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/users/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export async function POST(request: NextRequest) {
username: response.data.login || "",
};

if (!userData.name) {
if (!userData.username) {
console.log("Data is NULL. User is rate-limited by GitHub");
return new Response(
"Data is NULL. You are rate-limited, please try again later.",
Expand Down

0 comments on commit b53d513

Please sign in to comment.