Skip to content

[BUG]: .eq("github_login", githubLogin) can cause problem #3113

Closed

Description

@rudrakshtank

Bug Description

GitHub usernames are generally treated case-insensitively, and you already compare the primary account using .toLowerCase(). But the Supabase delete filter is case-sensitive, so deleting RudrakshTank may fail if the DB stored rudrakshtank.

Also, your params: Promise<{ githubLogin: string }> is fine for Next.js 15+, where dynamic APIs like params are async. For Next.js 14, it would usually be a plain object instead.

Steps to Reproduce

.ilike("github_login", githubLogin)

Affected Area

API Routes

Screenshots

No response

Browser & OS

No response

Environment

None

Additional Context

No response

Activity

  1. rudrakshtank commented on Jul 3, 2026

    @rudrakshtank
    ContributorAuthor

    I would like to work on this issue under GSSoC'26.

  2. github-actions commented on Jul 3, 2026

    @github-actions

    Assigned to @rudrakshtank! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!

  3. github-actions commented on Jul 12, 2026

    @github-actions

    ✅ Closed as completed!

    If DevTrack has been useful, a ⭐ star on the repo helps the project grow and reach more developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds-triageNeeds maintainer triage

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions